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

feat: add support to enable mTLS #10

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Thunderbottom
Copy link
Member

  • adds a variable: enable_tls on both client and server to enable mTLS config
  • adds a variable: tls_certificates that takes base64 encoded certificate files for ca_file, cert_file, key_file
  • adds variables: tls_http_enable and tls_rpc_enable to manually enable TLS for HTTP (default: false) and RPC (default: true). The default values enable intra-cluster mTLS while allowing end user to access Nomad using CLI without requiring the TLS certificates

Right now there's no way to verify if the variables are actually set, since terraform does not support validation based on other variable values.

* adds a variable: `enable_tls` on both client and server to enable mTLS
  config
* adds a variable: `tls_certificates` that takes base64 encoded
  certificate files for `ca_file`, `cert_file`, `key_file`
* adds variables: `tls_http_enable` and `tls_rpc_enable` to manually
  enable TLS for HTTP (default: `false`) and RPC (default: `true`). The
  default values enable intra-cluster mTLS while allowing end user to
  access Nomad using CLI without requiring the TLS certificates

Right now there's no way to verify if the variables are actually set,
since terraform does not support validation based on other variable
values.

Signed-off-by: Chinmay D. Pai <[email protected]>
this ensures that if tls over http is disabled, then the end users are not
required to produce TLS certificates for accessing nomad cluster using
CLI

Signed-off-by: Chinmay D. Pai <[email protected]>
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.

1 participant