Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exit on error auto auth annotation #400

Merged
merged 2 commits into from
Oct 31, 2022
Merged

Conversation

swenson
Copy link

@swenson swenson commented Oct 28, 2022

Support was added in the Vault agent in hashicorp/vault#17091

Additionally, I tested this on a cluster by adding the vault.hashicorp.com/agent-auto-auth-exit-on-err: "true" annotation on a pod, and observing that the agent configuration was:

{
  "auto_auth": {
    "method": {
      "type": "kubernetes",
      "mount_path": "auth/kubernetes",
      "config": {
        "role": "internal-app",
        "token_path": "/var/run/secrets/kubernetes.io/serviceaccount/token"
      },
      "exit_on_err": true
    }...

Support was added in the Vault agent in hashicorp/vault#17091

Additionally, I tested this on a cluster by adding the
`vault.hashicorp.com/agent-auto-auth-exit-on-err: "true"`
annotation on a pod, and observing that the agent configuration
was:

```json
{
  "auto_auth": {
    "method": {
      "type": "kubernetes",
      "mount_path": "auth/kubernetes",
      "config": {
        "role": "internal-app",
        "token_path": "/var/run/secrets/kubernetes.io/serviceaccount/token"
      },
      "exit_on_err": true
    }...
```
@tvoran
Copy link
Member

tvoran commented Oct 28, 2022

Oh and don't forget to add a changelog entry as well.

@swenson
Copy link
Author

swenson commented Oct 31, 2022

Thanks!

@swenson swenson merged commit d5a5e18 into main Oct 31, 2022
@swenson swenson deleted the vault-8432/exit-on-err branch October 31, 2022 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants