barman_object_store has fixed keys for access and secret
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- helm
- Domain
- devops, infrastructure
Research direction
Start with charts/cluster/templates/_barman_object_store.tpl and trace how the secret name and S3 credential keys are selected. The change is done when accessKeyField and secretKeyField can override the existing ACCESS_KEY_ID and ACCESS_SECRET_KEY defaults, while inheritFromIAMRole remains unchanged.
Written by the indexing model from the issue text.
Description
In charts/cluster/templates/_barman_object_store.tpl the keys for access and secret keys are fixed to ACCESS_KEY_ID and ACCESS_SECRET_KEY.
Some S3 implementations (like ceph) manage secrets on their own and they use different keys there. Those can't be changed.
You may also have some existing secret with other keys that needs to be reused (even if this is not recommended).
So you don't have to implement workarounds that copy secrets, it would be nice to be able to tell cnpg what's the name of these keys.
suggested improvement:
{{- $secretName := coalesce .scope.secret.name (printf "%s-%s-s3-creds" .chartFullname .secretPrefix) }}
{{- $accessKeyField := default "ACCESS_KEY_ID" .scope.s3.accessKeyField }}
{{- $secretKeyField := default "ACCESS_SECRET_KEY" .scope.s3.secretKeyField }}
s3Credentials:
{{- if .scope.s3.inheritFromIAMRole }}
inheritFromIAMRole: true
{{- else }}
accessKeyId:
name: {{ $secretName }}
key: {{ $accessKeyField }}
secretAccessKey:
name: {{ $secretName }}
key: {{ $secretKeyField }}
{{- end }}
- Dominant language
- Go Template
- Stars
- 622
- Forks
- 264
- Avg merge
- 6d 16h
- Merged PRs (30d)
- 8
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cloudnative-pg/charts
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cloudnative-pg/charts#1022 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
cloudnative-pg/charts#1020 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
cloudnative-pg/charts#1013 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
cloudnative-pg/charts#1001 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
cloudnative-pg/charts#992 · 1 comment ·
All issues in cloudnative-pg/charts
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
repo:raw-data
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
hotosm/raw-data-api#316 · 1 comment ·
-
agentic-workflows cascade-suspected
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
willow
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
openedx/openedx-authz#460 ·