Skip to content

Commit a3ea2e2

Browse files
CCM-11595 - Level 3 auth proxy (#116)
* Level 3 auth proxy * Level0 for PRs
1 parent b8bae80 commit a3ea2e2

File tree

14 files changed

+35
-7
lines changed

14 files changed

+35
-7
lines changed

.github/actions/build-proxies/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ runs:
5454
working-directory: .
5555
shell: bash
5656
run: |
57-
make build-json-oas-spec APIM_ENV=dev
57+
if [ -z $PR_NUMBER ]
58+
then
59+
make build-json-oas-spec APIM_ENV=dev
60+
else
61+
make build-json-oas-spec APIM_ENV=dev-pr
62+
fi
5863
5964
- name: Set target
6065
shell: bash

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ terraform 1.10.1
88
terraform-docs 0.19.0
99
trivy 0.61.0
1010
vale 3.6.0
11+
poetry 2.1.4
1112

1213
# ==============================================================================
1314
# The section below is reserved for Docker image versions.

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

6168
build-json-oas-spec: guard-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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- title: Application Restricted
2+
grants:
3+
app-level0: []
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
- title: Application Restricted
22
grants:
3-
app-level0: []
43
app-level3: []

0 commit comments

Comments
 (0)