kubesphere-devops-credentials
Qué hace
Esta skill ayuda a un agente de IA a configurar credenciales para los pipelines de KubeSphere DevOps. Está pensada para operadores que necesitan que los pipelines accedan de forma segura a repositorios Git, clústeres o servicios externos.
Cuándo usarla
- ✓Cuando necesitas añadir un repositorio Git a un proyecto de DevOps con SSH o con usuario y contraseña.
- ✓Cuando un pipeline necesita un kubeconfig o un token de API para acceder a un clúster o servicio.
- ✓Cuando hay que mover credenciales a otro proyecto de DevOps o una credencial no funciona.
Link de la skill
https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-devops-credentials/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Puedes añadir nuestro repositorio privado de GitHub a nuestro proyecto de DevOps usando una clave SSH?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente explica el tipo de credencial que encaja y la crea como un secreto de Kubernetes con las etiquetas que necesita KubeSphere. Después los pipelines pueden usarla una vez que se sincroniza con Jenkins.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
KubeSphere DevOps Credentials
Overview
Credentials in KubeSphere DevOps are Kubernetes Secrets with specific labels and annotations. They are synced to Jenkins for use in pipelines. Supported types include SSH keys, username/password, and secret tokens.
When to Use
- Creating credentials for Git repositories
- Setting up deployment credentials (kubeconfig, registry)
- Managing API tokens for external services
- Troubleshooting credential access issues
- Migrating credentials between DevOps projects
Credential Types
| Type | Use Case | Secret Key |
|---|---|---|
| SSH | Git repositories | username, privatekey |
| Basic | Username/password | username, password |
| Secret | API tokens, secrets | secret |
| Kubeconfig | Kubernetes clusters | kubeconfig (v1.1.x only) |
| SSH Username/Pass | Git with user/pass | username, password |
| String | Generic text/tokens | secret |
Resource Structure
Credentials are stored as Kubernetes Secrets with DevOps labels:
apiVersion: v1
kind: Secret
metadata:
name: my-credential
namespace: project-xxx # DevOps project namespace
labels:
devops.kubesphere.io/credential: "true"
annotations:
credential.devops.kubesphere.io/syncstatus: successful
credential.devops.kubesphere.io/type: ssh|basic-auth|secret-text
stringData:
username: git-user
privatekey: |
-----BEGIN OPENSSH PRIVATE KEY-----
...
-----END OPENSSH PRIVATE KEY-----
type: credential.devops.kubesphere.io/ssh # CRITICAL: Must use credential.devops.kubesphere.io/* type, NOT Opaque!
⚠️ CRITICAL: Secret Type Must Be credential.devops.kubesphere.io/*
The type field must be one of:
credential.devops.kubesphere.io/basic-authcredential.devops.kubesphere.io/ssh-authcredential.devops.kubesphere.io/secret-textcredential.devops.kubesphere.io/kubeconfig
Using type: Opaque will result in:
- Credential sync status stuck at "pending"
- Jenkins cannot find the credential
- Pipeline builds fail with "CredentialId could not be found"
Controller Logic: The credential controller only watches secrets with types starting with credential.devops.kubesphere.io/ (see devopscredential_controller.go line 102). Secrets with type: Opaque are completely ignored.
API Endpoints
| Operation | Method | Endpoint |
|---|---|---|
| List Credentials | GET | /kapis/devops.kubesphere.io/v1alpha3/namespaces/{devops}/credentials |
| Create Credential | POST | /kapis/devops.kubesphere.io/v1alpha3/namespaces/{devops}/credentials |
| Get Credential | GET | /kapis/devops.kubesphere.io/v1alpha3/namespaces/{devops}/credentials/{credential} |
| Update Credential | PUT | /kapis/devops.kubesphere.io/v1alpha3/namespaces/{devops}/credentials/{credential} |
| Delete Credential | DELETE | /kapis/devops.kubesphere.io/v1alpha3/namespaces/{devops}/credentials/{credential} |
| Get Usage | GET | /kapis/devops.kubesphere.io/v1alpha2/namespaces/{devops}/credentials/{credential}/usage |
Common Operations
List Credentials
curl "https://kubesphere-api/kapis/devops.kubesphere.io/v1alpha3/namespaces/{devops}/credentials" \
-H "Authorization: Bearer $TOKEN"
Create SSH Credential
curl -X POST "https://kubesphere-api/kapis/devops.kubesphere.io/v1alpha3/namespaces/{devops}/credentials" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"apiVersion": "v1",
"kind": "Secret",
"metadata": {
"name": "github-ssh-key",
"annotations": {
"credential.devops.kubesphere.io/type": "ssh"
}
},
"stringData": {
"username": "git",
"privatekey": "-----BEGIN OPENSSH PRIVATE KEY-----\n...\n-----END OPENSSH PRIVATE KEY-----"
},
"type": "credential.devops.kubesphere.io/ssh-auth"
}'
Create Basic Auth Credential
curl -X POST "https://kubesphere-api/kapis/devops.kubesphere.io/v1alpha3/namespaces/{devops}/credentials" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"apiVersion": "v1",
"kind": "Secret",
"metadata": {
"name": "docker-registry",
"annotations": {
"credential.devops.kubesphere.io/type": "basic-auth"
}
},
"stringData": {
"username": "docker-user",
"password": "docker-password"
},
"type": "credential.devops.kubesphere.io/basic-auth"
}'
Preguntas frecuentes
¿Qué tipos de credenciales son compatibles?
La skill enumera SSH, usuario y contraseña, tokens secretos, kubeconfig y texto genérico.
¿Dónde se guardan las credenciales?
Se guardan como secretos de Kubernetes con etiquetas de DevOps y se sincronizan con Jenkins.
¿Puede el agente comprobar por qué falla una credencial?
Sí. La skill cubre la solución de problemas de acceso y el estado de sincronización.
Detalles
Descripción original del autor
Use when managing credentials in KubeSphere DevOps, including repository credentials, kubeconfig, and API tokens
repo: kubesphere/kubesphere
Popularidad
- Estrellas en GitHub
- 17 mil
- Posición en el ranking
- #10768
- Licencia
- —
- Actualizada
- 14/7/2026
Comentarios
- …
Más skills de este repositorio
frontend-forge-fe-operations
17 milAyuda a tu agente a gestionar recursos FrontendExtension en KubeSphere, incluidos su compilación, su publicación y su depuración.
frontend-forge-fi-operations
17 milAyuda a tu agente a crear, actualizar, activar, desactivar e inspeccionar recursos FrontendIntegration y la extensión frontend-forge en KubeSphere.
frontend-integration-yaml
17 milAyuda a tu agente a crear un YAML de FrontendIntegration listo para enviar, para un menú con una o más páginas.
kubeeye
17 milAyuda a tu agente a instalar KubeEye, configurar reglas y planes de inspección del clúster, y después leer los informes de inspección.
Skills parecidas
openclaw-update
394 milAyuda a tu agente a actualizar una Gateway de OpenClaw que ya existe, eligiendo el método de actualización que encaja con cómo se instaló y manteniendo tu sesión activa.
diagnose-gateway
394 milAyuda a tu agente a averiguar por qué falla tu Gateway de OpenClaw, revisando ajustes, canales y puertos sin cambiar nada.
crabbox-apps
394 milAyuda a tu agente a abrir y ejecutar una app en una máquina temporal en la nube y mostrar su vista en el panel lateral de tu chat.