Skip to content

Enable hot-reloading of ATC HTTPS listener - #9472

Merged
taylorsilva merged 3 commits into
concourse:masterfrom
jghiloni:feat/atc-tls-hot-reload
Mar 24, 2026
Merged

taylorsilva merged 3 commits into
concourse:masterfrom
jghiloni:feat/atc-tls-hot-reload

Conversation

@jghiloni

@jghiloni jghiloni commented Feb 26, 2026 •

Copy link
Copy Markdown
Contributor

Changes proposed by this PR

closes #9468

Make sure to follow all PR requirements.

  • Wraps *github.com/tedsuo/ifrit/http_server.httpServer for TLS calls with new ifrit.Runner -- *github.com/concourse/concourse/atc/tls.ReloadableHTTPSListener that can react to syscall.SIGHUP signals, reload the *tls.Config, and restart the https listener
  • Adds tests for same
  • Updates atccmd.RunCommand to use tls.ReloadableHTTPSListener instead of http_server.NewTLSListener and adds a method to reload the TLS config when the signal is received

Notes to reviewer

Like the TSA hot-reloading, this doesn't make a ton of sense to use in the BOSH or K8s deployment model

Release Note

When running ATC in a self-managed way (like systemd or docker), sending a SIGHUP to the running process will now reload TLS configuration data for the web listener as well as the authorized keys for the TSA.

@jghiloni

Copy link
Copy Markdown
Contributor Author

Forgot to note: In addition to the unit tests that were provided, I manually tested by running the concourse binary with the web command, updating the contents of the files pointed to by the CONCOURSE_TLS_CERT and CONCOURSE_TLS_KEY variables, then sending SIGHUP to the pid of the binary. I then confirmed that the PID had not changed, and that the cert offered by the https endpoint had indeed changed.

@jghiloni
jghiloni force-pushed the feat/atc-tls-hot-reload branch from 3a1793f to ea50c8e Compare February 26, 2026 17:15
@jghiloni
jghiloni force-pushed the feat/atc-tls-hot-reload branch from ea50c8e to 2e8bb34 Compare February 26, 2026 17:51

@taylorsilva taylorsilva left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tested locally and it works as expected! Just some small nit-pick stuff and then this is good to merge.

Comment thread atc/atccmd/command.go Resolved
Comment thread atc/tls/runner.go Resolved
@taylorsilva taylorsilva moved this from Todo to Waiting on Contributor in Pull Requests Mar 18, 2026
jghiloni and others added 2 commits March 21, 2026 15:06
Accepting code review suggestion around tlsConfig

Co-authored-by: Taylor Silva <[email protected]>

@taylorsilva taylorsilva left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

TY!

@taylorsilva
taylorsilva merged commit 065fffd into concourse:master Mar 24, 2026
12 checks passed
@github-project-automation github-project-automation Bot moved this from Waiting on Contributor to Done in Pull Requests Mar 24, 2026
@jghiloni
jghiloni deleted the feat/atc-tls-hot-reload branch March 24, 2026 22:19
@taylorsilva taylorsilva added this to the v8.2.0 milestone Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Implement ATC TLS Hot Reload

2 participants