Skip to content

Commit f4e0caf

Browse files
feat(SecretManagement): migrate secrets to AWS SM
1 parent f64bf16 commit f4e0caf

File tree

8 files changed

+20
-7
lines changed

8 files changed

+20
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
| Readme | Chart Version | App Version | Description | Hub |
66
|--------|---------------|-------------|-------------|-----|
7-
| [Agent](./charts/agent/README.md) | 2.4.1 | v2.2.0 | Formance Membership Agent Helm Chart | [![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/agent)](https://artifacthub.io/packages/search?repo=agent) |
7+
| [Agent](./charts/agent/README.md) | 2.5.0 | v2.2.0 | Formance Membership Agent Helm Chart | [![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/agent)](https://artifacthub.io/packages/search?repo=agent) |
88
| [Cloudprem](./charts/cloudprem/README.md) | 3.0.0-rc.10 | v1.1.0 | Formance control-plane | [![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/cloudprem)](https://artifacthub.io/packages/search?repo=cloudprem) |
99
| [Console](./charts/console/README.md) | 2.0.1 | console-on.v1.0.2 | Formance Console | [![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/console)](https://artifacthub.io/packages/search?repo=console) |
1010
| [Console-V3](./charts/console-v3/README.md) | 2.0.3 | 5e7b404a3a208b1f38603719e02a8b1883c10acf | Formance Console | [![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/console-v3)](https://artifacthub.io/packages/search?repo=console-v3) |

charts/agent/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ maintainers:
1010
icon: "https://avatars.githubusercontent.com/u/84325077?s=200&v=4"
1111

1212
type: application
13-
version: 2.4.1
13+
version: 2.5.0
1414

1515
appVersion: "v2.2.0"
1616

charts/agent/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# agent
22

3-
![Version: 2.4.1](https://img.shields.io/badge/Version-2.4.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.2.0](https://img.shields.io/badge/AppVersion-v2.2.0-informational?style=flat-square)
3+
![Version: 2.5.0](https://img.shields.io/badge/Version-2.5.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.2.0](https://img.shields.io/badge/AppVersion-v2.2.0-informational?style=flat-square)
44

55
Formance Membership Agent Helm Chart
66

@@ -47,6 +47,7 @@ Formance Membership Agent Helm Chart
4747
| affinity | object | `{}` | |
4848
| agent.authentication.clientID | string | `""` | |
4949
| agent.authentication.clientSecret | string | `""` | |
50+
| agent.authentication.existingSecretToken | string | `""` | |
5051
| agent.authentication.issuer | string | `"https://app.formance.cloud/api"` | |
5152
| agent.authentication.mode | string | `"bearer"` | |
5253
| agent.baseUrl | string | `""` | |

charts/agent/templates/_helpers.tpl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,14 @@ app.kubernetes.io/instance: {{ .Release.Name }}
2626
value: "{{ .Values.agent.authentication.mode }}"
2727
{{- if eq .Values.agent.authentication.mode "token" }}
2828
- name: AUTHENTICATION_TOKEN
29-
value: "{{ .Values.agent.authentication.token }}"
29+
{{- if gt (len .Values.agent.authentication.existingSecretToken) 0 }}
30+
valueFrom:
31+
secretKeyRef:
32+
name: {{ .Values.agent.authentication.existingSecretToken }}
33+
key: "token"
34+
{{- else }}
35+
value: {{ .Values.agent.authentication.token }}
36+
{{- end }}
3037
{{- end }}
3138
{{- if eq .Values.agent.authentication.mode "bearer" }}
3239
- name: AUTHENTICATION_ISSUER

charts/agent/values.schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
"clientSecret": {
1616
"type": "string"
1717
},
18+
"existingSecretToken": {
19+
"type": "string"
20+
},
1821
"issuer": {
1922
"type": "string"
2023
},

charts/agent/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ agent:
109109
issuer: https://app.formance.cloud/api
110110
clientID: ""
111111
clientSecret: ""
112+
existingSecretToken: ""
112113

113114
# -- Public Region
114115
# mode: token

charts/regions/Chart.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
dependencies:
22
- name: agent
33
repository: file://../agent
4-
version: 2.4.1
4+
version: 2.5.0
55
- name: operator
66
repository: oci://ghcr.io/formancehq/helm
77
version: v2.6.0
8-
digest: sha256:72eccae222d27466817cb2dedb8cacbce157ae43255d79fc194ad4fe99133830
9-
generated: "2025-02-05T11:19:12.47191+01:00"
8+
digest: sha256:22dbd8e815865ab7efe82156516bdbd48683a1530120677138c7704dfbadf47c
9+
generated: "2025-02-06T13:49:12.33188523Z"

charts/regions/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ Formance Private Regions Helm Chart
121121
| agent.affinity | object | `{}` | |
122122
| agent.agent.authentication.clientID | string | `""` | |
123123
| agent.agent.authentication.clientSecret | string | `""` | |
124+
| agent.agent.authentication.existingSecretToken | string | `""` | |
124125
| agent.agent.authentication.issuer | string | `"https://app.formance.cloud/api"` | |
125126
| agent.agent.authentication.mode | string | `"bearer"` | |
126127
| agent.agent.baseUrl | string | `""` | |

0 commit comments

Comments
 (0)