-
Notifications
You must be signed in to change notification settings - Fork 2k
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
hashicorp/nomad docker image does not include CA certs #24464
Comments
@Freddo3000 were you to run the agent in the container, you'll note that the entrypoint script prevents you from running it as an agent without passing a specific environment variable. The container image has intentionally not been built with running the agent in mind. You could fix that by bind-mounting the CA certs from the host into the container, but trying to use Let's Encrypt certificates for Nomad tells me you've got a very unusual configuration. Nomad uses mTLS for host-to-host communication and expect specific non-global names in those certificates, which you can't get with Let's Encrypt. At this time we're not intending on shipping this change in the official Docker image, so I'm going to close this issue out, but I'm happy to keep chatting about what you're trying to do. |
To clarify, I'm not starting Nomad as an agent in docker, I'm using it as part of a CI/CD to initiate a Nomad job using The reason for using Let's Encrypt externally is to make onboarding easier for external users. Our users are primarily university students who may deploy services and projects through simple CI/CD chains on Github or Gitlab as part of course work, so what we're aiming to do is allow access through university networks with tokens/ACLs we provide without the added complexity of mTLS PKI. For this being able to use the |
Nomad version
Docker run log
Operating system and Environment details
Issue
The hashicorp/nomad image does not include ca-certificates, or any easy way to install them (being built on busybox). This causes issues in my case where Nomad is run using Let's Encrypt certs.
Reproduction steps
Expected Result
Nomad client is able to connect to the Nomad server.
Actual Result
Job file (if appropriate)
n/a
Nomad Server logs (if appropriate)
n/a
Nomad Client logs (if appropriate)
See Actual Result.
The text was updated successfully, but these errors were encountered: