Support sourcing `apisix.vault.token` from a Kubernetes Secret
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- helm, kubernetes
- Domain
- devops, infrastructure
Research direction
Start with values.yaml and templates/configmap.yaml, then compare how apisix.admin.credentials.secretName is handled. Verify the chart’s rendered resources when a Vault secretName is configured and when only token is provided. Done means an existing Kubernetes Secret can supply the configured key without writing the token into the ConfigMap.
Written by the indexing model from the issue text.
Description
Currently apisix.vault.token is taken verbatim from values.yaml and written in plaintext into the apisix-<release>-config ConfigMap:
# templates/configmap.yaml
{{- if .Values.apisix.vault.enabled }}
vault:
host: {{ .Values.apisix.vault.host }}
timeout: {{ .Values.apisix.vault.timeout }}
token: {{ .Values.apisix.vault.token }} # plaintext token into ConfigMap
prefix: {{ .Values.apisix.vault.prefix }}
{{- end }}
There's no way to provide the Vault token via an existing Kubernetes Secret — it must live in values.yaml (and therefore in the Helm release / Rancher app config / git).
The chart already offers a secretName option for the admin API credentials (apisix.admin.credentials.secretName). It would be helpful to have an equivalent for the Vault token, e.g.:
# values.yaml
vault:
enabled: false
host: ""
timeout: 10
token: ""
prefix: ""
secretName: "" # existing Secret containing the token
secretKey: "token" # key inside that Secret
When secretName is set, the chart would source the token from that Secret rather than from the plaintext token field.
- Dominant language
- Go Template
- Stars
- 289
- Forks
- 284
- Avg merge
- 4d 22h
- Merged PRs (30d)
- 2
Contributor guide
No contributing guide indexed for this repository
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 apache/apisix-helm-chart
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
apache/apisix-helm-chart#1006 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
apache/apisix-helm-chart#1005 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
apache/apisix-helm-chart#995 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
apache/apisix-helm-chart#986 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
apache/apisix-helm-chart#985 ·
All issues in apache/apisix-helm-chart
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 ·