Update Secrets Documentation
This is a...
- [x] Feature Request
- [ ] Bug Report
Study this Concept topic: Secrets. Much of the content is task-like. See how much of the task-like material is already covered in existing Task topics. For task-like content that is not already covered, create new Task topics, and remove the task-like content from Secrets. In the Task topics, if possible, create steps that the reader can actually do. Put the remaining conceptual material into the Concept template. Edit the content to comply with our style guide. Check for accuracy. Here's an existing Task topic: Distribute Credentials Securely Using Secrets. Look at the overall body of topics related to Secrets. Do we have the right set of topics? Have we covered all the important points?. Is there overlap that could be reduced?
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle stale
/remove-lifecycle stale /lifecycle frozen /reopen
/language en
/priority important-longterm
/triage accepted
https://github.com/kubernetes/website/issues/25962 is along the same lines
Also see issue #4410
/sig apps /sig security

/assign
I'll use this doc to plan my work (and check if improvements are really needed)
Based on an initial analysis, the overarching scope of work is:
- Update Secret concept
- Create new tasks:
- Allow containers to connect over SSH by mounting SSH keys as Secrets
- Distribute multiple Secrets to Pods that share common templates
- Manage sensitive configurations by using ConfigMaps in Secrets
- Restrict Secret access to individual containers in Pods
- Edit or replace a Secret
- Mark a Secret as immutable
- Update existing tasks:
- Hyperlink all the things (see Existing Secret-related topics for a starting point)
I've reached out to sig-security with an invitation to comment on the Scope of Work in the doc. I'll leave that open for 1 week and will action the scope of work in that state starting on Thursday, May 26th. I'll do smaller PRs where possible to avoid XXL reviews.
/milestone clear
@zacharysarah: You must be a member of the kubernetes/website-milestone-maintainers GitHub team to set the milestone. If you believe you should be able to issue the /milestone command, please contact your Website milestone maintainers and have them propose you as an additional delegate for this responsibility.
In response to this:
/milestone clear
Instructions 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/test-infra repository.
/milestone clear
Hide files in Secrets from normal listing commands
That wasn't how I read the existing example. I thought the intent was to show how you can take confidential config that an app expects to find in a hidden file (ie, the name begins with .) and manage that with a ~ConfigMap~ Secret. What we're competing with here is the rather unwise alternative of baking the config into your container image, or possibly something complicated with sidecars.
That wasn't how I read the existing example. I thought the intent was to show how you can take confidential config that an app expects to find in a hidden file (ie, the name begins with
.) and manage that with a ~ConfigMap~ Secret. What we're competing with here is the rather unwise alternative of baking the config into your container image, or possibly something complicated with sidecars.
So something like "Manage sensitive configurations using ConfigMap Secrets" with a real-world ish example of that
This issue has not been updated in over 1 year, and should be re-triaged.
You can:
- Confirm that this issue is still relevant with
/triage accepted(org members only) - Close this issue with
/close
For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/
/remove-triage accepted
I haven't touched this in a bit but I will continue to work on it.
/triage accepted
https://github.com/kubernetes/website/issues/42235 has a specific comment relating to this issue.