Sem descrição

xxxbobrxxx 10218d1ef7 #150 Small corrections, generate docs há 4 anos atrás
.github 956b89eea4 chore: Add Gabi to maintainers há 4 anos atrás
apis e4d8fb4046 #150 Implement LDAP and JWT/OIDC auth methods há 4 anos atrás
assets e0e824967d Tidy image há 5 anos atrás
deploy 10218d1ef7 #150 Small corrections, generate docs há 4 anos atrás
design 8361f6d055 Move crd spec to directory há 5 anos atrás
docs 10218d1ef7 #150 Small corrections, generate docs há 4 anos atrás
e2e 7beec56522 feat: add basic e2e test há 5 anos atrás
hack 80f6376d2c Add first iteration of custom metrics há 5 anos atrás
pkg e4d8fb4046 #150 Implement LDAP and JWT/OIDC auth methods há 4 anos atrás
.editorconfig 987d499241 cleanup: add lint and editorconfig há 5 anos atrás
.gitignore 7beec56522 feat: add basic e2e test há 5 anos atrás
.golangci.yaml 8c8064e0e1 Draft: feat: implement template (#69) há 5 anos atrás
CNAME 90286f37a4 Create CNAME há 5 anos atrás
Dockerfile b4b1f892c5 Improve primary CI pipeline and refactor Makefile há 5 anos atrás
LICENSE 59a364e04d initial commit há 5 anos atrás
Makefile 7beec56522 feat: add basic e2e test há 5 anos atrás
PROJECT 2e0a6effbe convert to multi-api há 5 anos atrás
README.md 0fbd2ea438 feat(docs): add basic docs for vault há 4 anos atrás
RELEASE.md 771334dee9 feat: helm release workflow há 5 anos atrás
SECURITY.md 25b3f4dd83 feat: security policy & dependabot (#60) há 5 anos atrás
changelog.json 771334dee9 feat: helm release workflow há 5 anos atrás
go.mod 0d0b60423c chore(deps): bump github.com/tidwall/gjson from 1.7.4 to 1.7.5 há 5 anos atrás
go.sum 10218d1ef7 #150 Small corrections, generate docs há 4 anos atrás
main.go 6318811108 Cleanup and remove kustomize manifests in favor of Helm chart há 5 anos atrás
tools.go 6318811108 Cleanup and remove kustomize manifests in favor of Helm chart há 5 anos atrás

README.md

External Secrets


The External Secrets Operator reads information from a third party service like AWS Secrets Manager and automatically injects the values as Kubernetes Secrets.

Multiple people and organizations are joining efforts to create a single External Secrets solution based on existing projects. If you are curious about the origins of this project, check out this issue and this PR.

Supported Backends

ESO installation with an AWS example

If you want to use Helm:

helm repo add external-secrets https://charts.external-secrets.io

helm install external-secrets \
   external-secrets/external-secrets \
    -n external-secrets \
    --create-namespace \
  # --set installCRDs=true

If you want to run it locally against the active Kubernetes cluster context:

git clone https://github.com/external-secrets/external-secrets.git
make crds.install
make run

Create a secret containing your AWS credentials:

echo -n 'KEYID' > ./access-key
echo -n 'SECRETKEY' > ./secret-access-key
kubectl create secret generic awssm-secret --from-file=./access-key  --from-file=./secret-access-key

Create a secret inside AWS Secret Manager with name my-json-secret with the following data:

{
  "name": {"first": "Tom", "last": "Anderson"},
  "friends": [
    {"first": "Dale", "last": "Murphy"},
    {"first": "Roger", "last": "Craig"},
    {"first": "Jane", "last": "Murphy"}
  ]
}

Apply the sample resources (omitting role and controller keys here, you should not omit them in production):

# secretstore.yaml
apiVersion: external-secrets.io/v1alpha1
kind: SecretStore
metadata:
  name: secretstore-sample
spec:
  provider:
    aws:
      service: SecretsManager
      region: us-east-2
      auth:
        secretRef:
          accessKeyIDSecretRef:
            name: awssm-secret
            key: access-key
          secretAccessKeySecretRef:
            name: awssm-secret
            key: secret-access-key
# externalsecret.yaml
apiVersion: external-secrets.io/v1alpha1
kind: ExternalSecret
metadata:
  name: example
spec:
  refreshInterval: 1m
  secretStoreRef:
    name: secretstore-sample
    kind: SecretStore
  target:
    name: secret-to-be-created
    creationPolicy: Owner
  data:
  - secretKey: firstname
    remoteRef:
      key: my-json-secret
      property: name.first # Tom
  - secretKey: first_friend
    remoteRef:
      key: my-json-secret
      property: friends.1.first # Roger
kubectl apply -f secretstore.yaml
kubectl apply -f externalsecret.yaml

Running kubectl get secret secret-to-be-created should return a new secret created by the operator.

You can get one of its values with jsonpath (This should return Roger):

kubectl get secret secret-to-be-created   -o jsonpath='{.data.first_friend}' | base64 -d

We will add more documentation once we have the implementation for the different providers. You can find some here: https://external-secrets.io

Contributing

We welcome and encourage contributions to this project! Please read the Developer and Contribution process guides. Also make sure to check the Code of Conduct and adhere to its guidelines.

Kicked off by