Skip to content
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

Add Authorization in order to expose the APIs #7

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ nb-configuration.xml

# Local environment
.env
.adhoc
2 changes: 2 additions & 0 deletions deployment/templates/deploymentconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ spec:
spec:
containers:
- envFrom:
- secretRef:
name: {{ .Values.name }}-secret
readinessProbe:
httpGet:
path: /health/ready
Expand Down
2 changes: 0 additions & 2 deletions deployment/templates/route.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if .Values.development }}
apiVersion: route.openshift.io/v1
kind: Route
metadata:
Expand All @@ -21,4 +20,3 @@ spec:
wildcardPolicy: None
status:
ingress: []
{{- end }}
11 changes: 11 additions & 0 deletions deployment/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{- if .Values.development }}
apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.name }}-secret
type: Opaque
stringData:
JWT_PUBKICKEY_LOCATION: "{{ .Values.jwtPublicKeyLocation }}"
JWT_ISSUER: "{{ .Values.jwtIssuer }}"
JWT_ENABLE: "{{ .Values.jwtEnable }}"
{{- end }}
6 changes: 5 additions & 1 deletion deployment/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ git:
uri: https://github.com/rht-labs/lodestar-config.git
ref: master

jwtPublicKeyLocation: false
jwtIssuer: false
jwtEnable: true

runtimeConfigs:
- name: lodestar-runtime
file: lodestar-runtime-config.yaml
Expand All @@ -22,4 +26,4 @@ runtimeConfigs:
path: /runtime
- name: lodestar-runtime-two
file: lodestar-runtime-config-two.yaml
path: /runtime
path: /runtime
Loading