Skip to content

Commit

Permalink
Record Vault token and add JWT support (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbystedt authored Dec 22, 2022
1 parent 4ca5f81 commit 41afbe5
Show file tree
Hide file tree
Showing 34 changed files with 2,898 additions and 2,210 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ $ source ./setenv-curl-local.sh
# Health check
$ ./health.sh
# Get token
$ ./config-jenkins.sh
$ ./provision-db-demo.sh
# Get secret id for provisioning fluentbit
$ ./provision-fluent-bit.sh
$ ./provision-fluentbit-demo.sh
```

## Test
Expand Down
2 changes: 1 addition & 1 deletion helm/broker-app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ version: 1.0.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: "1.4.1"
appVersion: "1.5.0"
15 changes: 15 additions & 0 deletions helm/broker-app/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,21 @@ spec:
secretKeyRef:
name: nr-broker-basic-creds
key: password
- name: JWT_SECRET
valueFrom:
secretKeyRef:
name: nr-broker-jwt-creds
key: secret
- name: JWT_VALIDATION_SUB
valueFrom:
secretKeyRef:
name: nr-broker-jwt-validation
key: sub-allow-list
- name: JWT_VALIDATION_JTI_DENY
valueFrom:
secretKeyRef:
name: nr-broker-jwt-validation
key: jti-deny-list
- name: USER_ADMIN
valueFrom:
secretKeyRef:
Expand Down
10 changes: 10 additions & 0 deletions helm/broker-secrets/templates/secret-jwt-auth.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kind: Secret
apiVersion: v1
metadata:
name: nr-broker-jwt-creds
labels:
app: "nr-broker-app"
helm.sh/chart: "nr-broker-app"
name: "nr-broker-app"
stringData:
secret: {{ .Values.auth.jwt_secret }}
2 changes: 2 additions & 0 deletions helm/broker-secrets/values.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ vault:
auth:
user: ""
password: ""
jwt_secret: ""

Loading

0 comments on commit 41afbe5

Please sign in to comment.