KEP-6228: JSON Pointer extraction for Secret and ConfigMap data - #6229
KEP-6228: JSON Pointer extraction for Secret and ConfigMap data#6229aqeelat wants to merge 2 commits into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: aqeelat The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
|
|
Welcome @aqeelat! |
|
Hi @aqeelat. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
c6359ec to
cba57ad
Compare
What type of PR is this?
/kind feature
What this PR does / why we need it:
Adds KEP-6228, proposing RFC 6901 JSON Pointer extraction from Secret/ConfigMap data for both environment variables and projected volume items.
Motivation: Applications frequently need only a small portion of a structured Secret or ConfigMap value. Today they must either receive the entire document (exposing unrelated credentials) or operators must duplicate fields into separate derived Secrets. This KEP enables selecting a JSON subtree directly, closing the least-privilege gap.
Key design decisions:
jsonPointer: {key, pointer}selector, mutually exclusive withkey, so older kubelets see an empty key and fail closed instead of delivering the whole document during version skew.Decoder.UseNumber), exactly one JSON value (reject trailing data).SecretConfigMapJSONPointeron kube-apiserver + kubelet.Tracking issue: #6228
Which issue(s) this PR fixes:
Ref #6228
Special notes for your reviewer: