/kube-dc:manage-secretsfrom kube-dc
Manages application secrets in Kube-DC's managed secret service, optionally syncs them to Kubernetes Secrets, and manages lifecycle via the kube-dc CLI.
Ships in kube-dc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A ManagedSecret carries metadata and sync intent in Kubernetes. Secret values
do not live in its spec; the Kube-DC backend stores them in the Project's
encrypted OpenBao KV space. When sync is enabled, External Secrets Operator
projects selected values into a regular Kubernetes Secret.
Use this feature for stored values such as API tokens and OAuth client secrets.
Use manage-database-credentials for rotated database users,
manage-certificates for x509 lifecycle, and manage-kms for Transit
encrypt/decrypt operations.
kube-dc use {domain}/{organization}/{project}.| Role | ManagedSecret lifecycle | Read/write values | Change sync | Destroy history |
|---|---|---|---|---|
user | Read metadata | No | No | No |
developer | Create, read, update, delete | Yes | Yes | No |
project-manager | Read and update existing resources | Yes | Yes, on existing resources | No |
admin | Full lifecycle | Yes | Yes | Yes |
The Project is the access boundary. developer and project-manager can also
read Kubernetes Secrets in the backing namespace.
The CLI enables sync by default and uses the ManagedSecret name as the target Kubernetes Secret:
kube-dc secrets create {name} \
--type opaque \
--description "Credential used by {application}" \
--from-env-file ./application.env
Other input forms are repeatable --from-literal=KEY=VALUE and
--from-file=KEY=path. Prefer files or an env file so sensitive values do not
remain in shell history.
Creating the CR and writing its first value are two sequential operations, not one transaction. If the value write fails, the CLI leaves the empty ManagedSecret in place and reports retry/cleanup commands.
Keep values only in OpenBao when no Kubernetes workload needs them:
kube-dc secrets create {name} --sync-disabled
A Git-safe intent manifest contains no data:
apiVersion: security.kube-dc.com/v1alpha1
kind: ManagedSecret
metadata:
name: "{name}"
namespace: "{project-backing-namespace}"
spec:
type: opaque
description: "Credential used by {application}"
sync:
enabled: true
targetSecretName: "{name}"
refreshInterval: 1h
See managed-secret-template.yaml.
kube-dc secrets list
kube-dc secrets get {name}
kube-dc secrets get {name} --value
--value prints the current plaintext values. Use it only in a trusted
terminal, never pipe it into logs, and do not include its output in chat.
kube-dc secrets put {name} --from-env-file ./application.env
kube-dc secrets unset {name} --key OLD_KEY
kube-dc secrets sync {name} --enabled=true --target={target-secret} --refresh=1h
External Secrets Operator updates the target on its reconciliation schedule. Values injected into container environment variables do not change in an already-running Pod; perform an application-aware rollout after the synced Secret changes. File-mounted Secret volumes update eventually, but the application must reread them.
Do not edit the projected Kubernetes Secret directly. ESO will reconcile it back to the managed value.
envFrom:
- secretRef:
name: "{target-secret}"
Before a destructive operation, inspect all known consumers:
kube-dc secrets consumers {name}
kube-dc secrets import {managed-name} --from {source-secret}
The source defaults to the current Project's backing namespace. A
cross-namespace import requires --from-namespace, --cross-namespace, and
permission to read the source; the operation is audit-visible.
kubectl get managedsecret {name} \
-o jsonpath='{.status.conditions[?(@.type=="Ready")].status}{"\n"}'
kubectl get managedsecret {name} -o yaml
kubectl get secret {target-secret}
kubectl get externalsecret
When sync is disabled, absence of a target Secret is expected. When it is
enabled, verify status.syncedSecretName and the ExternalSecret conditions.
Troubleshoot Ready=False through ManagedSecret conditions, Project security
status, and the platform operator; do not try to read internal OpenBao
credentials.
Soft delete removes the ManagedSecret and projected Kubernetes Secret but preserves stored value history:
kube-dc secrets delete {name}
Permanent destruction is admin-only and irreversible:
kube-dc secrets consumers {name}
kube-dc secrets delete {name} --destroy
Confirm with the user immediately before --destroy. Destroy ordering and
audit are owned by the backend; do not reproduce the operation with raw
OpenBao commands.
ManagedSecret.spec.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kube-dc/kube-dc-public --plugin kube-dc18 skills in this plugin
/check-quotaCheck Kube-DC Organization and Project quota before creating workloads, VMs, databases, Managed Clusters, public IPs, or storage./create-databaseCreate a managed database (PostgreSQL, MySQL, MariaDB, ClickHouse) or Valkey cache in a Kube-DC Project as a ManagedService, deliver its credential to workloads with a ServiceBinding Secret, and prepare backup and restore workflows./create-projectCreate a Kube-DC Project inside an existing Organization. Covers network selection, quota preflight, the Project manifest, and readiness verification./create-vmCreate a KubeVirt virtual machine in a Kube-DC Project using the live OS catalog, Project networking, supported storage, and the generated SSH keypair./deploy-appDeploy a containerized application to a Kube-DC Project as an Application (apps.kube-dc.com) or a plain workload, with optional persistent storage, a managed database, external exposure, or gated Shared GPU acceleration; set up keyless deploys, builds on push and pull request previews from a GitHub repository, with a managed container registry or the user's own; roll back, pause and inspect builds./deploy-web-stackDeploy a complete web application in a Kube-DC Project — a managed database (PostgreSQL, MySQL or MariaDB) with delivered credentials, an optional persistent volume, and an HTTPS hostname with a platform certificate through the shared Gateway, without a public IP. Use for WordPress, CMSs, APIs and any app that needs a database and a URL.Other plugins' skills for the same job