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 terminating and ingress gateways #894

Merged
merged 7 commits into from
Dec 3, 2021

Conversation

kschoche
Copy link
Contributor

@kschoche kschoche commented Dec 2, 2021

Changes proposed in this PR:

  • Add Vault TLS support for ingress and terminating gateways.

How I've tested this PR:
bats and acceptance tests added

How I expect reviewers to test this PR:
review tests

Checklist:

  • Tests added
  • CHANGELOG entry added

    HashiCorp engineers only, community PRs should not add a changelog entry.
    Entries should use present tense (e.g. Add support for...)

@kschoche kschoche added area/chart-only Related to changes that simply require yaml Helm chart changes, e.g. exposing a new field vault labels Dec 2, 2021
@kschoche kschoche requested a review from a team December 2, 2021 18:40
@kschoche kschoche self-assigned this Dec 2, 2021
@kschoche kschoche requested review from ishustava and t-eckert and removed request for a team December 2, 2021 18:40
{{- if (and $root.Values.global.secretsBackend.vault.enabled $root.Values.global.tls.enabled) }}
"vault.hashicorp.com/agent-init-first": "true"
"vault.hashicorp.com/agent-inject": "true"
"vault.hashicorp.com/role": {{ $root.Values.global.secretsBackend.vault.consulCARole }}
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm always going to read this as someone yelling the first part of the name "Carol". "CAR-ole!"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hahaha

Copy link
Contributor

@t-eckert t-eckert left a comment

Choose a reason for hiding this comment

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

Great work on some beefy Bats tests. You'll have to give a seminar on writing bats.

@kschoche
Copy link
Contributor Author

kschoche commented Dec 2, 2021

Great work on some beefy Bats tests. You'll have to give a seminar on writing bats.

Thanks! I actually lifted them off #889 from @ishustava !

Copy link
Contributor

@ishustava ishustava left a comment

Choose a reason for hiding this comment

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

🎉

acceptance/tests/vault/vault_test.go Outdated Show resolved Hide resolved
@kschoche kschoche merged commit 82baca0 into server-tls-bootstrapping Dec 3, 2021
@kschoche kschoche deleted the add-gateways-support branch December 3, 2021 05:15
kschoche added a commit that referenced this pull request Dec 7, 2021
* Support Vault server running with TLS (#874)
* Change vault cluster in acceptance tests to only run with TLS. All tests will run against vault with TLS because that is the use case we think will be the most valuable for users to test
* Support adding Vault CA as a secret to pods that will be using vault agent. We need to add two annotations to pods:
      * vault.hashicorp.com/agent-extra-secret with the value of the vault CA secret name. The secret will be mounted to vault agent at /vault/custom path. See docs here
      * vault.hashicorp.com/ca-cert - with the path of the ca file inside the vault agent container. This should be /vault/custom/<secret key>
* Most pods will only need those annotations. The server pods also need the Vault CA secret to be mounted as a volume because it needs the CA to be on the file system for the vault connect CA provider.

* add terminating and ingress gateways TLS support (#894)
* Support TLS with vault for the server-acl-init job (#889)
* Support TLS with Vault for the sync catalog deployment (#890)
* Support server TLS with vault for the client snapshot agent deployment (#891)

Co-authored-by: Iryna Shustava <iryna@hashicorp.com>
Co-authored-by: Luke Kysow <1034429+lkysow@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/chart-only Related to changes that simply require yaml Helm chart changes, e.g. exposing a new field vault
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants