Skip to content

Commit 2580e12

Browse files
github-actions[bot]SimonMitchellMOJ
and
SimonMitchellMOJ
authoredJul 14, 2023
updating project name after deployment from template repository (#1)
Co-authored-by: SimonMitchellMOJ <[email protected]>
1 parent d4b5ab1 commit 2580e12

15 files changed

+36
-115
lines changed
 

‎.circleci/config.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ workflows:
156156
# jira_env_type: staging
157157
# context:
158158
# - hmpps-common-vars
159-
# - hmpps-template-typescript-preprod
159+
# - hmpps-authorization-preprod
160160
# requires:
161161
# - request-preprod-approval
162162
# helm_timeout: 5m
@@ -173,15 +173,15 @@ workflows:
173173
# slack_channel_name: << pipeline.parameters.releases-slack-channel >>
174174
# context:
175175
# - hmpps-common-vars
176-
# - hmpps-template-typescript-prod
176+
# - hmpps-authorization-prod
177177
# requires:
178178
# - request-prod-approval
179179
# helm_timeout: 5m
180180

181181
security:
182182
triggers:
183183
- schedule:
184-
cron: "30 5 * * 1-5"
184+
cron: "39 9 * * 1-5"
185185
filters:
186186
branches:
187187
only:
@@ -207,7 +207,7 @@ workflows:
207207
security-weekly:
208208
triggers:
209209
- schedule:
210-
cron: "0 5 * * 1"
210+
cron: "56 9 * * 1"
211211
filters:
212212
branches:
213213
only:

‎.github/workflows/rename_template_project_pr.yml

-24
This file was deleted.

‎CHANGELOG.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,36 @@
44

55
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.
66

7-
PR: [here](https://github.com/ministryofjustice/hmpps-template-typescript/pull/197)
7+
PR: [here](https://github.com/ministryofjustice/hmpps-authorization/pull/197)
88

99
---
1010

1111
**April 13th 2023** - Caching fix
1212

1313
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.
1414

15-
PR: [here](https://github.com/ministryofjustice/hmpps-template-typescript/pull/178)
15+
PR: [here](https://github.com/ministryofjustice/hmpps-authorization/pull/178)
1616

1717
---
1818

1919
**April 4th 2023** - Remove unnecessary build step
2020

2121
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.
2222

23-
PR: [here](https://github.com/ministryofjustice/hmpps-template-typescript/pull/172)
23+
PR: [here](https://github.com/ministryofjustice/hmpps-authorization/pull/172)
2424

2525
---
2626

2727
**March 20th 2023** - CSP fix for redirects during POST on session timeout
2828

2929
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)
3030

31-
PR: [here](https://github.com/ministryofjustice/hmpps-template-typescript/pull/170)
31+
PR: [here](https://github.com/ministryofjustice/hmpps-authorization/pull/170)
3232

3333
---
3434

3535
**February 3rd 2023** - Revert multi build docker image
3636

3737
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.
3838

39-
PR: [here](https://github.com/ministryofjustice/hmpps-template-typescript/pull/149)
39+
PR: [here](https://github.com/ministryofjustice/hmpps-authorization/pull/149)

‎README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# hmpps-template-typescript
2-
[![repo standards badge](https://img.shields.io/badge/dynamic/json?color=blue&style=flat&logo=github&label=MoJ%20Compliant&query=%24.result&url=https%3A%2F%2Foperations-engineering-reports.cloud-platform.service.justice.gov.uk%2Fapi%2Fv1%2Fcompliant_public_repositories%2Fhmpps-template-typescript)](https://operations-engineering-reports.cloud-platform.service.justice.gov.uk/public-github-repositories.html#hmpps-template-typescript "Link to report")
3-
[![CircleCI](https://circleci.com/gh/ministryofjustice/hmpps-template-typescript/tree/main.svg?style=svg)](https://circleci.com/gh/ministryofjustice/hmpps-template-typescript)
1+
# hmpps-authorization
2+
[![repo standards badge](https://img.shields.io/badge/dynamic/json?color=blue&style=flat&logo=github&label=MoJ%20Compliant&query=%24.result&url=https%3A%2F%2Foperations-engineering-reports.cloud-platform.service.justice.gov.uk%2Fapi%2Fv1%2Fcompliant_public_repositories%2Fhmpps-authorization)](https://operations-engineering-reports.cloud-platform.service.justice.gov.uk/public-github-repositories.html#hmpps-authorization "Link to report")
3+
[![CircleCI](https://circleci.com/gh/ministryofjustice/hmpps-authorization/tree/main.svg?style=svg)](https://circleci.com/gh/ministryofjustice/hmpps-authorization)
44

55
Template github repo used for new Typescript based projects.
66

@@ -12,15 +12,15 @@ see https://github.com/ministryofjustice/dps-project-bootstrap.
1212
This bootstrap is community managed by the mojdt `#typescript` slack channel.
1313
Please raise any questions or queries there. Contributions welcome!
1414

15-
Our security policy is located [here](https://github.com/ministryofjustice/hmpps-template-typescript/security/policy).
15+
Our security policy is located [here](https://github.com/ministryofjustice/hmpps-authorization/security/policy).
1616

1717
More information about the template project including features can be found [here](https://dsdmoj.atlassian.net/wiki/spaces/NDSS/pages/3488677932/Typescript+template+project).
1818

1919
## Creating a CloudPlatform namespace
2020

2121
When deploying to a new namespace, you may wish to use this template typescript project namespace as the basis for your new namespace:
2222

23-
<https://github.com/ministryofjustice/cloud-platform-environments/tree/main/namespaces/live.cloud-platform.service.justice.gov.uk/hmpps-template-typescript>
23+
<https://github.com/ministryofjustice/cloud-platform-environments/tree/main/namespaces/live.cloud-platform.service.justice.gov.uk/hmpps-authorization>
2424

2525
This template namespace includes an AWS elasticache setup - which is required by this template project.
2626

‎helm_deploy/hmpps-template-typescript/Chart.yaml renamed to ‎helm_deploy/hmpps-authorization/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
appVersion: '1.0'
33
description: A Helm chart for Kubernetes
4-
name: hmpps-template-typescript
4+
name: hmpps-authorization
55
version: 0.2.0
66
dependencies:
77
- name: generic-service

‎helm_deploy/hmpps-template-typescript/values.yaml renamed to ‎helm_deploy/hmpps-authorization/values.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
22
generic-service:
3-
nameOverride: hmpps-template-typescript
3+
nameOverride: hmpps-authorization
44

55
replicaCount: 4
66

77
image:
8-
repository: quay.io/hmpps/hmpps-template-typescript
8+
repository: quay.io/hmpps/hmpps-authorization
99
tag: app_version # override at deployment time
1010
port: 3000
1111

1212
ingress:
1313
enabled: true
1414
host: app-hostname.local # override per environment
15-
tlsSecretName: hmpps-template-typescript-cert
15+
tlsSecretName: hmpps-authorization-cert
1616

1717
livenessProbe:
1818
httpGet:
@@ -41,7 +41,7 @@ generic-service:
4141
# [name of environment variable as seen by app]: [key of kubernetes secret to load]
4242

4343
namespace_secrets:
44-
hmpps-template-typescript:
44+
hmpps-authorization:
4545
APPINSIGHTS_INSTRUMENTATIONKEY: "APPINSIGHTS_INSTRUMENTATIONKEY"
4646
API_CLIENT_ID: "API_CLIENT_ID"
4747
API_CLIENT_SECRET: "API_CLIENT_SECRET"
@@ -63,4 +63,4 @@ generic-service:
6363
cloudplatform-live-3: "35.177.252.54/32"
6464

6565
generic-prometheus-alerts:
66-
targetApplication: hmpps-template-typescript
66+
targetApplication: hmpps-authorization

‎helm_deploy/values-dev.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
# Per environment values which override defaults in hmpps-template-typescript/values.yaml
2+
# Per environment values which override defaults in hmpps-authorization/values.yaml
33

44
generic-service:
55
replicaCount: 2
66

77
ingress:
8-
host: hmpps-template-typescript-dev.hmpps.service.justice.gov.uk
8+
host: hmpps-authorization-dev.hmpps.service.justice.gov.uk
99

1010
env:
11-
INGRESS_URL: "https://hmpps-template-typescript-dev.hmpps.service.justice.gov.uk"
11+
INGRESS_URL: "https://hmpps-authorization-dev.hmpps.service.justice.gov.uk"
1212
HMPPS_AUTH_URL: "https://sign-in-dev.hmpps.service.justice.gov.uk/auth"
1313
TOKEN_VERIFICATION_API_URL: "https://token-verification-api-dev.prison.service.justice.gov.uk"
1414

‎helm_deploy/values-preprod.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
# Per environment values which override defaults in hmpps-template-typescript/values.yaml
2+
# Per environment values which override defaults in hmpps-authorization/values.yaml
33

44
generic-service:
55
replicaCount: 2
66

77
ingress:
8-
host: hmpps-template-typescript-preprod.hmpps.service.justice.gov.uk
8+
host: hmpps-authorization-preprod.hmpps.service.justice.gov.uk
99

1010
env:
11-
INGRESS_URL: "https://hmpps-template-typescript-preprod.hmpps.service.justice.gov.uk"
11+
INGRESS_URL: "https://hmpps-authorization-preprod.hmpps.service.justice.gov.uk"
1212
HMPPS_AUTH_URL: "https://sign-in-preprod.hmpps.service.justice.gov.uk/auth"
1313
TOKEN_VERIFICATION_API_URL: "https://token-verification-api-preprod.prison.service.justice.gov.uk"
1414

‎helm_deploy/values-prod.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
# Per environment values which override defaults in hmpps-template-typescript/values.yaml
2+
# Per environment values which override defaults in hmpps-authorization/values.yaml
33

44
generic-service:
55
ingress:
6-
host: hmpps-template-typescript.hmpps.service.justice.gov.uk
6+
host: hmpps-authorization.hmpps.service.justice.gov.uk
77

88
env:
9-
INGRESS_URL: "https://hmpps-template-typescript.hmpps.service.justice.gov.uk"
9+
INGRESS_URL: "https://hmpps-authorization.hmpps.service.justice.gov.uk"
1010
HMPPS_AUTH_URL: "https://sign-in.hmpps.service.justice.gov.uk/auth"
1111
TOKEN_VERIFICATION_API_URL: "https://token-verification-api.prison.service.justice.gov.uk"
1212

‎logger.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import config from './server/config'
44

55
const formatOut = bunyanFormat({ outputMode: 'short', color: !config.production })
66

7-
const logger = bunyan.createLogger({ name: 'HMPPS Typescript Template', stream: formatOut, level: 'debug' })
7+
const logger = bunyan.createLogger({ name: 'Hmpps Authorization', stream: formatOut, level: 'debug' })
88

99
export default logger

‎package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "hmpps-template-typescript",
2+
"name": "hmpps-authorization",
33
"version": "0.0.1",
4-
"description": "HMPPS Typescript Template",
5-
"repository": "git@github.com:ministryofjustice/hmpps-template-typescript.git",
4+
"description": "Hmpps Authorization",
5+
"repository": "git@github.com:ministryofjustice/hmpps-authorization.git",
66
"license": "MIT",
77
"scripts": {
88
"prepare": "husky install",

‎rename-project.bash

-55
This file was deleted.

‎server/utils/nunjucksSetup.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function nunjucksSetup(app: express.Express, applicationInfo: App
1111
app.set('view engine', 'njk')
1212

1313
app.locals.asset_path = '/assets/'
14-
app.locals.applicationName = 'HMPPS Typescript Template'
14+
app.locals.applicationName = 'Hmpps Authorization'
1515

1616
// Cachebusting version string
1717
if (production) {

0 commit comments

Comments
 (0)
Please sign in to comment.