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

Support disable_keep_alives #376

Merged
merged 3 commits into from Jul 28, 2022
Merged

Support disable_keep_alives #376

merged 3 commits into from Jul 28, 2022

Conversation

swenson
Copy link
Contributor

@swenson swenson commented Jul 28, 2022

Follow up for hashicorp/vault#16479, which
added support for disable_keep_alives

This is used very similarly to disable_idle_connections, which was
added in #366

This adds the disable_keep_alives setting into the injected agent's
config, which can be specified per pod:

metadata:
  annotations:
    vault.hashicorp.com/agent-disable-keep-alives: "auto-auth,caching,templating"

globally in the injector through the helm command when deploying:

helm install vault hashicorp/vault \
  --set injector.extraEnvironmentVars.AGENT_INJECT_DISABLE_KEEP_ALIVES="auto-auth\,caching\,templating"

or through the helm values.yaml file:

injector:
  extraEnvironmentVars:
    AGENT_INJECT_DISABLE_KEEP_ALIVES: "auto-auth,caching,templating"

This was copied almost verbatim from #366, so thanks @tvoran :)

Co-authored-by: Theron Voran theron@hashicorp.com

Follow up for hashicorp/vault#16479, which
added support for `disable_keep_alives`

This is used very similarly to `disable_idle_connections`, which was
added in #366

This adds the `disable_keep_alives` setting into the injected agent's
config, which can be specified per pod:

```yaml
metadata:
  annotations:
    vault.hashicorp.com/agent-disable-keep-alives: "auto-auth,caching,templating"
```

globally in the injector through the helm command when deploying:

```sh
helm install vault hashicorp/vault \
  --set injector.extraEnvironmentVars.AGENT_INJECT_DISABLE_KEEP_ALIVES="auto-auth\,caching\,templating"
```

or through the helm `values.yaml` file:

```yaml
injector:
  extraEnvironmentVars:
    AGENT_INJECT_DISABLE_KEEP_ALIVES: "auto-auth,caching,templating"
```

This was copied almost verbatim from #366, so thanks @tvoran :)

Co-authored-by: Theron Voran <theron@hashicorp.com>
@swenson swenson requested a review from tvoran July 28, 2022 22:10
Copy link
Member

@tvoran tvoran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested good for me! :shipit:

Also could use a changelog entry.

agent-inject/agent/agent.go Outdated Show resolved Hide resolved
swenson and others added 2 commits July 28, 2022 15:30
Co-authored-by: Theron Voran <tvoran@users.noreply.github.com>
@swenson
Copy link
Contributor Author

swenson commented Jul 28, 2022

Changelog added. Thanks!

@swenson swenson merged commit 214ca15 into main Jul 28, 2022
@swenson swenson deleted the vault-7263/disable-keep-alives branch July 28, 2022 22:39
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.

None yet

2 participants