Skip to content

Commit

Permalink
wip: fix cred in clear text in config
Browse files Browse the repository at this point in the history
  • Loading branch information
nleconte-csgroup committed Feb 15, 2024
1 parent d53df0b commit 0300990
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
7 changes: 2 additions & 5 deletions charts/rs-server-adgs/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ metadata:

data:
{{ .Values.app.eodagConfigFile }}: |-
ADGS:
adgs:
auth:
type: GenericAuth
method: basic
credentials:
username: {{ .Values.app.station.endpoint.secret.username }}
password: {{ .Values.app.station.endpoint.secret.password }}
products:
GENERIC_PRODUCT_TYPE:
productType: '{productType}'
Expand Down Expand Up @@ -73,5 +70,5 @@ data:
downloadLink: '{{ .Values.app.station.endpoint.url }}({uid})/$value'
{{ .Values.app.stationConfigFile }}: |-
{
"ADGS": "{{ .Values.app.station.endpoint.url }}"
"adgs": "{{ .Values.app.station.endpoint.url }}"
}
4 changes: 2 additions & 2 deletions charts/rs-server-adgs/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ spec:
secretKeyRef:
name: {{ .Release.Name }}-obs
key: sk
- name: STATION_USER
- name: EODAG__adgs__auth__credentials__username
valueFrom:
secretKeyRef:
name: {{ .Release.Name }}-endpoint
key: user
- name: STATION_PASS
- name: EODAG__adgs__auth__credentials__password
valueFrom:
secretKeyRef:
name: {{ .Release.Name }}-endpoint
Expand Down
7 changes: 2 additions & 5 deletions charts/rs-server-cadip/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ metadata:

data:
{{ .Values.app.eodagConfigFile }}: |-
CADIP:
cadip:
auth:
type: GenericAuth
method: basic
credentials:
username: {{ .Values.app.station.endpoint.secret.username }}
password: {{ .Values.app.station.endpoint.secret.password }}
products:
GENERIC_PRODUCT_TYPE:
productType: '{productType}'
Expand Down Expand Up @@ -86,5 +83,5 @@ data:
downloadLink: 'http://127.0.0.1:5000/Files({uid})/$value'
{{ .Values.app.stationConfigFile }}: |-
{
"CADIP": "{{ .Values.app.station.endpoint.url }}"
"cadip": "{{ .Values.app.station.endpoint.url }}"
}
4 changes: 2 additions & 2 deletions charts/rs-server-cadip/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ spec:
secretKeyRef:
name: {{ .Release.Name }}-obs
key: sk
- name: STATION_USER
- name: EODAG__cadip__auth__credentials__username
valueFrom:
secretKeyRef:
name: {{ .Release.Name }}-endpoint
key: user
- name: STATION_PASS
- name: EODAG__cadip__auth__credentials__password
valueFrom:
secretKeyRef:
name: {{ .Release.Name }}-endpoint
Expand Down

0 comments on commit 0300990

Please sign in to comment.