/kube-dc:manage-database-credentialsfrom kube-dc
Delivers managed database credentials via ServiceBinding Secrets, rotates passwords on demand with RotateCredentials, or schedules rotation with ServiceCredentialPolicy.
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.
ManagedService is Ready; record its metadata.uid.{organization}-{project}.admin or developer Project role. project-manager may pause or
change an existing policy but not create one.owner and
readonly for PostgreSQL, MySQL, MariaDB and ClickHouse; default for
Valkey (read-only on valkey-ha); admin and client for Kafka. All
bindings of one role share one credential.ServiceBinding delivers a role as a Secret in the Project and pins
the service UID. It is the only way credentials reach workloads; status
never carries values.RotateCredentials operation issues a new password for a role and
republishes it to every binding of that role.ServiceCredentialPolicy does the rotation on an interval. It never
creates a login or grants privileges.apiVersion: services.kube-dc.com/v1alpha1
kind: ServiceBinding
metadata:
name: "{service-name}-{role}"
namespace: "{backing-namespace}"
spec:
serviceRef: { name: "{service-name}" }
serviceUID: "{service-uid}"
role: "{role}"
consumer:
kind: ServiceAccount
name: "{workload-service-account}"
namespace: "{backing-namespace}"
delivery:
secretName: "{service-name}-{role}"
kubectl apply -f binding.yaml
kubectl get servicebinding {service-name}-{role} -n {backing-namespace} -w # READY True, CredentialDelivered
kubectl describe secret {service-name}-{role} -n {backing-namespace} # keys only
The Secret carries the annotation services.kube-dc.com/credential-version;
status.credentialVersion on the binding matches it after every rotation.
rotate-operation-template.yaml:
apiVersion: services.kube-dc.com/v1alpha1
kind: ServiceOperation
metadata:
name: "{service-name}-rotate-{role}-{n}"
namespace: "{backing-namespace}"
spec:
serviceRef: { name: "{service-name}" }
serviceUID: "{service-uid}"
type: RotateCredentials
idempotencyKey: "{service-name}-rotate-{role}-{n}"
parameters:
role: "{role}"
execution:
window: Immediate
Wait for Succeeded, then restart workloads that read the password from
environment variables (kubectl rollout restart deployment/{name}). Workloads
that mount the Secret as a file and reread it need no restart. The plan may
require provider approval (AwaitingApproval); tenants cannot approve.
The operation's own result decides for an existing service: phase
AwaitingApproval (reason ApprovalRequired) means it waits for the
provider, and phase Rejected with reason PlanNotEntitled means the
service's plan does not allow it. A ServiceOffering, where the installation
serves one, is only an advisory preview for new services: it shows the plan's
last projected revision (plan.lastProjectedRevision), while an existing
service can be pinned to an earlier one.
If you read it, only a usable offering (status.projectionFormat 1,
Ready=True) that lists a RotateCredentials entry tells you anything: its
requiresApproval suggests whether to expect a wait. A missing entry, a
failed read, or an unusable offering proves nothing; submit the operation and
read its phase.
kubectl get serviceoffering {plan} -n {backing-namespace} \
-o jsonpath='{.status.projectionFormat} {.status.conditions[?(@.type=="Ready")].status}{"\n"}{range .status.operations[*]}{.type}={.requiresApproval}{"\n"}{end}'
kubectl get serviceoperation {operation-name} -n {backing-namespace} \
-o jsonpath='{.status.phase} {.status.reason} {.status.message}{"\n"}'
rotation-policy-template.yaml:
apiVersion: services.kube-dc.com/v1alpha1
kind: ServiceCredentialPolicy
metadata:
name: "{service-name}-{role}-rotation"
namespace: "{backing-namespace}"
spec:
serviceRef: { name: "{service-name}" }
serviceUID: "{service-uid}"
role: "{role}"
rotationIntervalSeconds: 2592000 # 30 days; 60 to 31536000
paused: false
For an existing SQL login a DBA created (PostgreSQL, plan entitlement
credentials.allowExistingUsers), replace role with
existingUser: { username: "{login}", database: "{database}" }; the policy's
status.credentialRole is then the role bindings must use.
kubectl get servicecredentialpolicy -n {backing-namespace}
kubectl patch servicecredentialpolicy {name} -n {backing-namespace} --type merge -p '{"spec":{"paused":true}}'
Deleting a policy of a declared role keeps the bindings and their Secrets.
Report the binding name, role, Secret name and keys, the credential version,
and for a rotation the operation phase. Never print password or uri.
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