1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-15 17:51:01 +00:00
external-secrets/docs/snippets/aws-jenkins-credential-github-ssh-external-secret.yaml
Moritz Johner 61340a78ed
feat: anchore and jenkins guides with snippets (#682)
Co-authored-by: Lucas Severo Alves <lucassalves65@gmail.com>
Co-authored-by: Surjit Bains <surjit.bains@gmail.com>
2022-02-07 12:14:06 +01:00

27 lines
669 B
YAML

---
apiVersion: external-secrets.io/v1alpha1
kind: ExternalSecret
metadata:
name: github-ssh-access
namespace: ci
spec:
refreshInterval: 1m
secretStoreRef:
name: cluster-parameter-store
kind: ClusterSecretStore
target:
name: github-ssh-access
template:
metadata:
labels:
"jenkins.io/credentials-type": "basicSSHUserPrivateKey"
annotations:
"jenkins.io/credentials-description": "github-ssh-access key"
data:
- secretKey: username
remoteRef:
key: /service/github/sshUserPrivateKeyUserName
- secretKey: privateKey
remoteRef:
key: /service/github/sshUserPrivateKey