Skip to content

Commit

Permalink
Store authentication keys in a separate database (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
gab-arrobo authored Feb 23, 2024
1 parent 0d6e9c8 commit f7e8bff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 5g-control-plane/templates/configmap-udr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{{- $sbi := index $config "sbi" }}

{{- if not (hasKey $config "mongodb") -}}
{{- $_ := dict "name" .Values.config.mongodb.name "url" .Values.config.mongodb.url | set $config "mongodb" -}}
{{- $_ := dict "name" .Values.config.mongodb.name "url" .Values.config.mongodb.url "authKeysDbName" .Values.config.mongodb.authKeysDbName "authUrl" .Values.config.mongodb.authUrl | set $config "mongodb" -}}
{{- end }}

{{- if not (hasKey $udrcfg "logger") -}}
Expand Down
2 changes: 1 addition & 1 deletion 5g-control-plane/templates/configmap-webui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{{- end }}

{{- if not (hasKey $config "mongodb") -}}
{{- $_ := dict "name" .Values.config.mongodb.name "url" .Values.config.mongodb.url | set $config "mongodb" -}}
{{- $_ := dict "name" .Values.config.mongodb.name "url" .Values.config.mongodb.url "authKeysDbName" .Values.config.mongodb.authKeysDbName "authUrl" .Values.config.mongodb.authUrl | set $config "mongodb" -}}
{{- end }}

{{- end }}
Expand Down
2 changes: 2 additions & 0 deletions 5g-control-plane/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ config:
mongodb:
name: free5gc
url: mongodb://mongodb-arbiter-headless
authKeysDbName: authentication
authUrl: mongodb://mongodb-arbiter-headless
grpc:
golog_verbosity: "99"
severity: "info"
Expand Down

0 comments on commit f7e8bff

Please sign in to comment.