generated from ministryofjustice/hmpps-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template changes #18
Merged
Merged
Template changes #18
Changes from 206 commits
Commits
Show all changes
207 commits
Select commit
Hold shift + click to select a range
2f73e58
Initial commit
andrewrlee c89f6f8
Alee/init (#1)
andrewrlee 472adbb
Fixing docker image (#2)
andrewrlee 36a57e7
Fix secret name (#3)
andrewrlee 8683f28
Correcting variable names and removing unnecessary ones (#4)
andrewrlee 418349e
Fixing variable name (#5)
andrewrlee c2af2d4
Removing trailing slashes from env vars (#6)
andrewrlee 49ace58
Fix hostname (#7)
andrewrlee ccc0c03
Update dependencies (#8)
andrewrlee ac0dfa6
Reducing docker image size (#9)
andrewrlee c8a5587
Add rename script (#10)
andrewrlee 1a11c21
Alee/decoupling auth client from redis (#11)
andrewrlee ec4f5ed
Update to latest hmpps orb version (#12)
mattops 27a10a5
Fixing build-info.json placement (#13)
brightonsbox 1ac0a0c
Convert to arrow functions in utils (#14)
psoleckimoj b3713ee
Make the use of logger naming consistent (#15)
psoleckimoj 61b41df
Adding outdated job (#16)
andrewrlee 594b004
Updating dependencies (#17)
andrewrlee a581d49
Moving to enable no-implicit-any (#18)
andrewrlee db09442
DT-1659: 🔨 Remove helm copying secrets from AWS (#19)
petergphillips 716fdfb
Adding moj design system (#20)
andrewrlee 8a43d6d
Add new veracode scan for schedueled workflow (#21)
mattops 9fefb8f
Removing deprecated body parser (#22)
andrewrlee e8532ef
DT-1627: 📄 Update license with correct year (#23)
petergphillips cf8f8d7
Added missing ping endpoint as used by Kubernetes for liveliness prob…
andymarke ea38330
DT-2012 - upgrade hmpps orb, and add veracode policy scan job. (#25)
mattops e7df526
Use generic-service and generic-prometheus-alerts charts (#26)
mattops a2d85cd
Updating dependencies and adding slack notifications to outdated chec…
andrewrlee 336b8fa
Moving to group middleware into related modules, following the patter…
andrewrlee 5f29995
Fix the slack notification on `check_outdated` (#30)
3ef04f5
Updating node dependencies (#31)
andrewrlee 5e81ee3
Fixing configuration of security audit (#32)
brightonsbox 2003f62
Alee/update dependencies (#33)
andrewrlee 3d93d8e
DT-2166 - add trivy image scanning job (#35)
mattops 96d73dc
Fix trivy scan job slack notifications channel (#36)
mattops f541d64
Use node executor and parameterise the version (#34)
markreesmoj 0d87899
Deploy template project to template k8s namespace (#37)
mattops 4422c3f
DT-2260 - update to latest circleci orb and chart dependencies (#38)
mattops bc34e5f
Updating dependencies and improving README (#39)
andrewrlee e9450ed
DT-2282: ⬆️ Fix veracode policy scan (#40)
petergphillips 7fd93c9
Moving cypress tests to typescript (#41)
andrewrlee 264f33f
DT-2404: 💄 Switch to sign in / out instead of login / out (#42)
petergphillips fb0d2d0
DT-2404: ✅ Run tests automatically on commit (#43)
petergphillips 80eee9d
Update dependencies (#44)
andrewrlee f41de78
DT-2297 - Veracode - switch to daily pipeline scan (results in circle…
mattops f5d881e
DT-2297- randomise timing of circleci security workflow due to rate l…
mattops 17a4437
update typescript (#48)
connormaglynn 4a64ef0
Fixing docker caching apt-get layer (#49)
andrewrlee dd68b5d
Fix docker build failing, and reduce image size (#50)
mattops 94db4f2
Remove use of semi colons before arrays (#51)
garethmdavies d7d9133
WFP-610 update to npmv7 and fix some audit (#52)
markreesmoj 2115d45
WFP-610 upgrade to jest-junit 13 to bring in new ansi-regex (#54)
markreesmoj 5946417
Upgrading dependencies (#55)
andrewrlee 223e269
FIXBUILD: update ansi-regex subdependency (#56)
markreesmoj d943820
DT-2702: 🔨 Use new generic service configuration (#57)
petergphillips 349bdb7
Update dependencies (#58)
andrewrlee aa16d4a
Moving to use HMPPS header (#59)
brightonsbox cc41f5d
Fix path of unit test results that are uploaded as artifacts (#60)
ushkarev 6ff0d36
DT-2814: 🐛 Fix cron timings for veracode (#61)
petergphillips a6c72ba
NN-3747 fixing json structure for the stubUserRoles call and populati…
f247b8a
Bumping node version (#63)
andrewrlee db9a433
DT-2796: 🔨 Migrate dev to live context (#64)
petergphillips d94f72c
Update dependencies and move to NPM v8 (#65)
psoleckimoj dccca36
Upgrading dependencies (#66)
andrewrlee a192197
Update modules and remove express-request-id (#67)
psoleckimoj 2c530c0
INC-163 Timeout Fix - Correctly sets the timeout for a HttpAgent (#69)
Mjwillis 59a9b65
⬆️ update dependencies and 💄add no-only-tests linting rule for cypres…
connormaglynn 9651352
SDI-60: 🔨 Add global protect and petty france to allowlists (#71)
petergphillips 10ccbe8
Update dependencies (#72)
psoleckimoj c450787
DCS-1442 jquery-ui.css coep fix (#73)
louisenorris 7d9565b
Fixing docker caching issue (#74)
andrewrlee fd85c22
Setup prometheus metrics by default. (#75)
49c6ad6
Bump minimist from 1.2.5 to 1.2.6 (#76)
dependabot[bot] 0354a09
Update dependencies (#77)
andrewrlee eefd2aa
Audit fix (#79)
andrewrlee dc3f727
NN-4060: App Insights only works with bunyan v1 (#80)
sp-watson e2e93b4
Update orb and dependencies (#82)
andrewrlee 8aa16ee
Stop metrics test from hitting a real service and occasionally timing…
jonnywyatt 752a0ec
SDI-181: 🔧 Add jira notifications for new projects (#83)
petergphillips 05dcc72
Adding better redis error handling (#84)
andrewrlee 3bd1861
SDI-181: 🔧 Use new cimg redis executor (#85)
petergphillips 968735d
SLM-245 Restore cache prior to running up the app for the integration…
mikehalmamoj 6676e3a
SDI-88: 🚨 Fix querystring warning (#87)
petergphillips 0bd862a
SDI-88: 🐛 Fix cookie session down as a dependency (#88)
petergphillips 73c1b62
SDI-88: ♻️ Tidy up mocks and switch to multiplatform builds (#89)
petergphillips 0f2559b
Allow async get to take an array of strings for paths like original g…
psoleckimoj 5e69d1a
SDI-182: ✨ Switch to using connection string instead (#91)
petergphillips 5d61681
Update README.md (#92)
andrewrlee 7a08151
SDI-88: ✅ Add token verification integration tests (#94)
petergphillips 6de4fe3
Minor "code smell" fixes suggested by Sonar Cloud (#95)
ushkarev f4d9846
SDI-211: 🔒️ Bump versions to fix security issues and cope with passpo…
petergphillips d5d2fbc
Updating dependencies (#97)
andrewrlee d961034
SDI-211: 🎨 Enforce trailing comma on functions too (#98)
petergphillips 992fff1
SDI-211: 🎨 Enforce arrow parens (#99)
petergphillips 2fa5e70
Bump dependencies (#100)
psoleckimoj 127b2c7
SDI-218: ⬆ Upgrade cypress to v10 (#101)
petergphillips 5249392
⬆️ Update dependencies (#102)
connormaglynn 3c43ed9
Ignore false positive around nodemon (#103)
andrewrlee 3c5a9ba
Updating dependencies (#104)
andrewrlee 616e7ce
Update dependencies (#105)
andrewrlee a6ac4cb
Create services container (#106)
andrewrlee a71978d
SDI-265: ♻️ Minor improvements (#107)
petergphillips 9820452
SDI-265: 🚨 Add lint check for only (#108)
petergphillips d548f47
Update Jest to v28 and minor dependency updates (#109)
psoleckimoj 1a9e219
Remove duplicate <main> elements (#110)
richpjames 338690a
Bumping dependencies and fixing page width (#111)
andrewrlee 26f0b62
Add a `cspNonce` to the webSecurity setup (#112)
pezholio e2299e3
Update dependencies 2022-08-22 (#113)
psoleckimoj 3dfd162
Update dependencies to fix check outdated flagging typescript (#114)
neilmendum 737b6f6
Update dependencies 2022-09-09 (#115)
psoleckimoj 25b0208
Speeding up jest tests (#116)
andrewrlee 610a227
Removing colour from logs in production mode (#117)
andrewrlee 767c5d9
Move ingress (#118)
psoleckimoj 9ca506c
SDI-345: ⬆️ Upgrade node and cypress (#119)
petergphillips 0a16804
Fixing logging (#120)
andrewrlee af854b8
Update dependencies 2022-09-28 (#121)
psoleckimoj 2dcae4f
⬆️Upgrade to latest helm chart versions (#122)
connormaglynn b2a656c
Adding badges (#123)
andrewrlee c78f1d5
Updating node to v18 (#124)
andrewrlee 65980b1
Set helm timeout to 5 minutes (#125)
carlov20 f7aad6e
Use official redis image for docker-compose (#126)
neilmendum b7152f7
Update Helm config to match Kotlin template (#127)
neilmendum 1d1ddb6
Update dependencies 2022-11-15 (#128)
psoleckimoj de90fee
Update dependencies 2022-11-16 (#129)
psoleckimoj 317fcb2
Update node images (#130)
psoleckimoj 6964e83
SDI-476: ⬆ Bump versions (#131)
petergphillips 4920b06
Update dependencies 2022-12-08 (#132)
psoleckimoj 8633cb0
Update dependencies 2022-12-19 (#133)
psoleckimoj 2e1e3d5
Bump jsonwebtoken from 8.5.1 to 9.0.0 (#136)
dependabot[bot] 3a127d6
Fix conflicting prettier / eslint rule (#135)
pezholio 5386b50
SDI-523: 🔒️ Fix / ignoresecurity issues (#138)
petergphillips b636741
HEAT-41: use npm outdated job from HMPPS Orb; update other dependenci…
neilmendum 839c8e1
Update dependencies 2023-01-24 (#140)
psoleckimoj 4c975e6
Update dependencies 2023-01-31 (#141)
psoleckimoj 9fc40b0
Update dependencies 2023-02-01 (#142)
psoleckimoj 1f27375
Configure Renovate (#144)
renovate[bot] 14cdec7
Update Helm release generic-service to v2.4.0 (#146)
renovate[bot] a99053c
Update peter-evans/create-pull-request action to v4 (#148)
renovate[bot] 97b1fa8
Update actions/checkout action to v3 (#147)
renovate[bot] 92b5a33
Add .nvmrc file, Prettier support for Nunjucks and use SCSS (#143)
davidmiddletonmoj 7745886
Revert build_multiplatform_docker because it causes the build to take…
neilmendum b80efe8
Update dependency cypress to ^12.5.1 (#150)
renovate[bot] 20f2181
HEAT-52: reduce the size of the PR body by specifying prBodyTemplate …
neilmendum 0075fab
Update all non major NPM dependencies (#151)
renovate[bot] 8e5a9d2
Update all non major NPM dependencies (#153)
renovate[bot] d9c2d14
Update all non major NPM dependencies (#155)
renovate[bot] 941ca4d
Update all non major NPM dependencies (#156)
renovate[bot] cd997e0
Update all non major NPM dependencies (#159)
renovate[bot] 41a6094
Update Helm release generic-service to v2.5.0 (#161)
renovate[bot] 213008f
Update node image and regenerate package-lock.json (#165)
psoleckimoj 154e107
Update hmpps-orb to v7.2.1 (#166)
garethmdavies 220b506
Upgrade to connect-redis 7 and update other dependencies (#168)
psoleckimoj 2b69d5b
Upgrade to typescript 5 (#169)
psoleckimoj 19be08c
Add HMPPS Auth URL to form-action CSP string (#170)
bryangaledxw 919ecdc
Update TypeScript etc 2023-04-03 (#174)
psoleckimoj 52f8e99
Removing unnecessary build (#172)
andrewrlee 37f8bc0
Update dependencies 2023-04-12 (#177)
psoleckimoj 06ecd8d
SDIT-738: ⚡️ Cache static resources for 1 hour (#178)
petergphillips b3477b1
Update dependencies 2023-04-21 (#181)
psoleckimoj 757c6ef
Fix security vuln 2023-04-25 (#183)
psoleckimoj 4b75683
Update Helm release generic-service to v2.6.2 (#182)
renovate[bot] 194c154
SDIT-760: 🔧 Upgrade redis to 7 (#186)
petergphillips c8869d0
Update Helm release generic-service to v2.6.3 (#184)
renovate[bot] ea3f137
Tie css cache to version of application (#188)
andrewrlee 88c301f
Fix version not appearing in application insights (#190)
andrewrlee 5b7903b
Update Helm release generic-prometheus-alerts to v1.3.2 (#189)
renovate[bot] 586d966
Add PreProd and Prod helm config (#193)
neilmendum f6b3725
Update slack orb to v4.12.5 (#185)
renovate[bot] 83be369
Update peter-evans/create-pull-request action to v5 (#175)
renovate[bot] 58512df
Update all non major NPM dependencies (#176)
renovate[bot] 4466ddc
Update Node.js to v18.16 (#191)
renovate[bot] 087bc0e
Update dependencies 2023-06-07 (#196)
psoleckimoj ded60e6
Do not retry POST requests by default (#197)
andrewrlee ddf3823
Adding changelog (#198)
andrewrlee a5dc02d
Have `sanitisedError` always return an Error instance (#199)
ushkarev eac50e9
Update all non major NPM dependencies (#195)
renovate[bot] 7e907e1
Update all non major NPM dependencies (#200)
renovate[bot] 613628c
Fix semver vuln (#202)
psoleckimoj 2c49560
Update govuk-frontend to 4.7.0 (#205)
psoleckimoj ee2b55a
Update all non major NPM dependencies (#204)
renovate[bot] b3e39ed
HEAT-82: Add productId and /info endpoint (#212)
psoleckimoj 71d46bc
Update README with dev portal URL (#213)
psoleckimoj 0ad7d20
Fix info endpoint test description (#214)
psoleckimoj ce05196
Update CHANGELOG.md (#216)
andrewrlee 8b64d97
Fix linting, update modules, remove override (#219)
psoleckimoj fc402c2
Move /info to health check block (#220)
psoleckimoj dd2585c
Update dependencies 2023-09-05 (#226)
psoleckimoj dda7da0
Fix CircleCI workflows for cypress (#223)
ushkarev 6e9a6f5
Fix cypress config and remove some vestigial code (#228)
ushkarev a357ce8
Update readme (#229)
psoleckimoj f2314e1
Update Helm release generic-prometheus-alerts to v1.3.3 (#224)
renovate[bot] ea81f5b
Update redis Docker tag to v7.2 (#221)
renovate[bot] 8e536a6
Update Node.js to v18.18 (#230)
renovate[bot] a04c1e7
HEAT-106: Standardise endpoints (#231)
psoleckimoj 57feb88
SDIT-1088: ✨ Get components to always return status even if failed (#…
petergphillips 41227a8
SDIT-1108: 🔧 Don't default build args (#233)
petergphillips 5251e36
SDIT-1108: ♻️ Fix deprecated syntax version of ENV (#234)
petergphillips 9358419
SDIT-1108: ✨ Add in environment name to header (#235)
petergphillips b1a467a
SDIT-1108: 📝 Add new environment name to changelog (#236)
petergphillips 1d8b294
NON-270: Improve REST client (#238)
ushkarev dc8cbc6
Update actions/checkout action to v4 (#225)
renovate[bot] 7c9412a
Update all non major NPM dependencies (#210)
renovate[bot] 7345c5a
Update Helm release generic-service to v2.6.5 (#237)
renovate[bot] 1a4b83d
Merge remote-tracking branch 'template/main' into template-changes
thomasridd 3455082
updated package.lock
thomasridd b36d144
update hmpps-template-typescript to hmpps-authorization across project
thomasridd 9e3aee3
removed rename-project workflow
thomasridd File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: rename-project-create-pr | ||
|
||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Run rename-project script | ||
run: ./rename-project.bash ${{ github.event.repository.name }} | ||
|
||
- name: Delete this github actions workflow | ||
run: rm .github/workflows/rename_template_project* | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
commit-message: updating project name after deployment from template repository | ||
title: Update template project name/references | ||
body: Update all references to project name after deploying from template repository | ||
branch: rename_template_project | ||
base: main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,8 @@ | ||
# Change log | ||
|
||
**June 9th 2023** - Do not retry POST requests by default | ||
**October 6th 2023** - Integrated updates from the `hmpps-typescript-template` | ||
|
||
It's not safe to retry idempotent calls as this introduces the risk of creating multiple resources. This fix changes the default to not carry out any retries but allows switching on retrying if desired. | ||
---------- | ||
|
||
PR: [here](https://github.com/ministryofjustice/hmpps-authorization/pull/197) | ||
For prior changes see [hmpps-template-typescript CHANGELOG.md](https://github.com/ministryofjustice/hmpps-template-typescript/blob/main/CHANGELOG.md) | ||
|
||
--- | ||
|
||
**April 13th 2023** - Caching fix | ||
|
||
Asset caching was only set to 20 seconds. This fix changes the default to 1 hour which has a profound effect on the number of requests the application serves. | ||
|
||
PR: [here](https://github.com/ministryofjustice/hmpps-authorization/pull/178) | ||
|
||
--- | ||
|
||
**April 4th 2023** - Remove unnecessary build step | ||
|
||
There was an additional unnecessary build step as part of start:dev npm task. This more than doubled the start time on the initial run. | ||
|
||
PR: [here](https://github.com/ministryofjustice/hmpps-authorization/pull/172) | ||
|
||
--- | ||
|
||
**March 20th 2023** - CSP fix for redirects during POST on session timeout | ||
|
||
Updates the Content Security Policy to fix issues when users would be stuck on pages after submitting a form after their session times out. (Lots more detail in the PR) | ||
|
||
PR: [here](https://github.com/ministryofjustice/hmpps-authorization/pull/170) | ||
|
||
--- | ||
|
||
**February 3rd 2023** - Revert multi build docker image | ||
|
||
Multibuild docker images ended up taking a very long time after the upgrade to node 18 (1hr+). Some work needs to be done to move to support multi host builds in our circle orb, in the meantime we’ve removed this and are just building images solely for deployment. | ||
|
||
PR: [here](https://github.com/ministryofjustice/hmpps-authorization/pull/149) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,3 +139,8 @@ | |
display: none; | ||
} | ||
} | ||
|
||
.govuk-phase-banner { | ||
@include govuk-width-container; | ||
border: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ version: '3.1' | |
services: | ||
|
||
redis: | ||
image: 'redis:7.0' | ||
image: 'redis:7.2' | ||
networks: | ||
- hmpps_int | ||
ports: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be deleted, it's no longer a template app
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed