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_idle_connections #366

Merged
merged 2 commits into from Jul 1, 2022
Merged

Conversation

tvoran
Copy link
Member

@tvoran tvoran commented Jun 30, 2022

Adds support for setting disable_idle_connections in the injected
agent's config, via an annotation per-pod (vault.hashicorp.com/agent-disable-idle-connections), or the AGENT_INJECT_DISABLE_IDLE_CONNECTIONS environment variable that will affect all injections.

annotation:

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

environment variable with helm cli:

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

environment variable with helm values file:

# values.yaml
injector:
  extraEnvironmentVars:
    AGENT_INJECT_DISABLE_IDLE_CONNECTIONS: "auto-auth,caching,templating"

Adds support for setting `disable_idle_connections` in the injected
agent's config, via an annotation
per-pod (vault.hashicorp.com/agent-disable-idle-connections), or the
AGENT_INJECT_DISABLE_IDLE_CONNECTIONS environment variable that will
affect all injections.
@tvoran tvoran requested review from swenson and tomhjp June 30, 2022 18:06
Copy link
Contributor

@swenson swenson left a comment

Choose a reason for hiding this comment

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

LGTM

@tvoran tvoran merged commit 4d93d46 into main Jul 1, 2022
@tvoran tvoran deleted the VAULT-6680/disable_idle_connections branch July 1, 2022 00:43
swenson added a commit that referenced this pull request 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:

```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 added a commit that referenced this pull request Jul 28, 2022
Support disable_keep_alives

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 <tvoran@users.noreply.github.com>
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