Skip to content

Commit 13bc292

Browse files
level0 for PRs
1 parent 93e5796 commit 13bc292

File tree

9 files changed

+20
-3
lines changed

9 files changed

+20
-3
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,16 @@ set-access: guard-APIM_ENV
5353
envsubst '$${ACCESS}' \
5454
< specification/api/components/x-nhsd-apim/access-template.yml > specification/api/components/x-nhsd-apim/access.yml
5555

56+
set-security: guard-APIM_ENV
57+
@ SECURITY=security-$$APIM_ENV.yml \
58+
envsubst '$${SECURITY}' \
59+
< specification/api/components/security/security-template.yml > specification/api/components/security/security.yml
60+
5661
construct-spec: guard-APIM_ENV
5762
$(MAKE) set-target APIM_ENV=$$APIM_ENV
5863
$(MAKE) set-access APIM_ENV=$$APIM_ENV
64+
$(MAKE) set-security APIM_ENV=$$APIM_ENV
65+
5966

6067
build-json-oas-spec: guard-APIM_ENV
6168
$(MAKE) construct-spec APIM_ENV=$$APIM_ENV
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
app-level0: []
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
app-level3: [ ]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
app-level0: []
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$ref: $SECURITY
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$ref: security-dev-pr.yml
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
[]
1+
- title: Application Restricted
2+
grants:
3+
app-level0: []

specification/api/components/x-nhsd-apim/target-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ healthcheck: /_status
33
url: https://suppliers.dev.nhsnotify.national.nhs.uk
44
security:
55
type: apikey
6-
header: Authorization
6+
header: nhsd-apim-apikey
77
secret: nhs-notify-supplier-key

specification/api/notify-supplier-phase1.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ info:
88
This specification represents the in-development 'next' version of the API schema
99
and should be treated as unstable.
1010
security:
11-
- app-level3: [ ]
11+
- $ref: 'components/security/security.yml'
1212
paths:
1313
/letters:
1414
parameters:
@@ -57,6 +57,9 @@ components:
5757
securitySchemes:
5858
app-level3:
5959
$ref: https://proxygen.ptl.api.platform.nhs.uk/components/securitySchemes/app-level3
60+
app-level0:
61+
$ref: https://proxygen.ptl.api.platform.nhs.uk/components/securitySchemes/app-level0
62+
6063
tags:
6164
- name: letter
6265
description: ''

0 commit comments

Comments
 (0)