urtir/siagasiber/cis-oke-v170-5-3-1
Claude Code and agent skill by urtir/siagasiber
- community
Checking that the SKILL.md file is still in the repository.
Encrypting Kubernetes Secrets at Rest in Etcd (Manual)
Install
npx vskill@latest install urtir/siagasiber/cis-oke-v170-5-3-1SKILL.md
The same SKILL.md was published earlier as urtir/siagasiber/cis-oke-v170-5-3-1.
CIS OKE Benchmark v1.7.0 - Control 5.3.1
Profile Applicability
- Level: 1
Description
Encrypt Kubernetes secrets, stored in etcd, at the application-layer using a customer-managed key.
Rationale
The master nodes in a Kubernetes cluster store sensitive configuration data (such as authentication tokens, passwords, and SSH keys) as Kubernetes secret objects in etcd. Etcd is an open source distributed key-value store that Kubernetes uses for cluster coordination and state management. In the Kubernetes clusters created by Container Engine for Kubernetes, etcd writes and reads data to and from block storage volumes in the Oracle Cloud Infrastructure Block Volume service. Although the data in block storage volumes is encrypted, Kubernetes secrets at rest in etcd itself are not encrypted by default.
Impact
None.
Audit Procedure
Before you can create a cluster where Kubernetes secrets are encrypted in the etcd key-value store, you have to:
- know the name and OCID of a suitable master encryption key in Vault
- create a dynamic group that includes all clusters in the compartment in which you are going to create the new cluster
- create a policy authorizing the dynamic group to use the master encryption key
Remediation
You can create a cluster in one tenancy that uses a master encryption key in a different tenancy. In this case, you have to write cross-tenancy policies to enable the cluster in its tenancy to access the master encryption key in the Vault service's tenancy. Note that if you want to create a cluster and specify a master encryption key that's in a different tenancy, you cannot use the Console to create the cluster.
For example, assume the cluster is in the ClusterTenancy, and the master encryption key is in the KeyTenancy. Users belonging to a group (OKEAdminGroup) in the ClusterTenancy have permissions to create clusters. A dynamic group (OKEAdminDynGroup) has been created in the cluster, with the rule ALL {resource.type = 'cluster', resource.compartment.id = 'ocid1.compartment.oc1..<unique_ID>'}, so all clusters created in the ClusterTenancy belong to the dynamic group.
In the root compartment of the KeyTenancy, the following policies:
- use the ClusterTenancy's OCID to map ClusterTenancy to the alias OKE_Tenancy
- use the OCIDs of OKEAdminGroup and OKEAdminDynGroup to map them to the aliases RemoteOKEAdminGroup and RemoteOKEClusterDynGroup respectively
- give RemoteOKEAdminGroup and RemoteOKEClusterDynGroup the ability to list, view, and perform cryptographic operations with a particular master key in the KeyTenancy
In the root compartment of the ClusterTenancy, the following policies:
- use the KeyTenancy's OCID to map KeyTenancy to the alias KMS_Tenancy
- give OKEAdminGroup and OKEAdminDynGroup the ability to use master keys in the KeyTenancy
- allow OKEAdminDynGroup to use a specific master key obtained from the KeyTenancy in the ClusterTenancy
See Accessing Object Storage Resources Across Tenancies for more examples of writing cross-tenancy policies.
Having entered the policies, you can now run a command similar to the following to create a cluster in the ClusterTenancy that uses the master key obtained from the KeyTenancy:
Default Value
By default, Kubernetes secrets at rest in etcd are not encrypted at the application layer.
References
- https://docs.cloud.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengencryptingdata.htm
CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 | |
|---|---|---|---|---|---|
| v8 | 3.11 Encrypt Sensitive Data at Rest | \* | \* | ||
| v7 | 14.8 Encrypt Sensitive Information at Rest | \* |
MITRE ATT&CK Mappings
| Techniques / Sub-techniques | Tactics | Mitigations | |
|---|---|---|---|
| T1552 | TA0006 | M1022 |
Profile
Level 1 (Manual)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.siaga/skill/CIS_benchmarks/Server_Software/Kubernetes/CIS_OKE_Benchmark_v1.7.0/cis-oke-v170-5.3.1/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/urtir/siagasiber/cis-oke-v170-5-3-1)