Skip to content

caddytls: add session_tickets global option - #8424

Open
joshbarros wants to merge 3 commits into
caddyserver:masterfrom
joshbarros:feat/8218-session-tickets-option
Open

joshbarros wants to merge 3 commits into
caddyserver:masterfrom
joshbarros:feat/8218-session-tickets-option

Conversation

@joshbarros

Copy link
Copy Markdown

Refs #8218

The TLS app already has session_tickets settings in JSON, but there was no Caddyfile equivalent. Add a global option:

{
	session_tickets {
		rotation_interval 1h
		max_keys 2
		disable_rotation
		disabled
	}
}

session_tickets off disables tickets. The parser validates a positive interval, a positive key count, and rejects unknown subdirectives; tests adapt a Caddyfile and decode the resulting tls.session_tickets object.

Expose the existing TLS session ticket service settings in the Caddyfile: rotation_interval, max_keys, disable_rotation, disabled, and the short form 'session_tickets off'. Wire the parsed service onto the TLS app.
@caddy-cla

caddy-cla Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

✅ Contributor License Agreement

All identified contributors have signed the CLA. Thank you!

@joshbarros
joshbarros force-pushed the feat/8218-session-tickets-option branch from 4f058eb to eeda11c Compare November 17, 2026 14:21
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