Skip to content

Serve over TLS and switch to stdlib CSRF protection#7

Merged
awly merged 1 commit intomainfrom
awly/https-csrf
Dec 2, 2025
Merged

Serve over TLS and switch to stdlib CSRF protection#7
awly merged 1 commit intomainfrom
awly/https-csrf

Conversation

@awly
Copy link
Member

@awly awly commented Dec 2, 2025

In particular this will allow CLI tools to request JIT access without breaking CSRF mitigations.

@awly awly requested a review from bradfitz December 2, 2025 19:48
Copy link
Member

@bradfitz bradfitz left a comment

Choose a reason for hiding this comment

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

Could the TLS part be optional in dev mode where I don't want to deal with the latency of fetching a cert?

In particular this will allow CLI tools to request JIT access without
breaking CSRF mitigations.
@awly
Copy link
Member Author

awly commented Dec 2, 2025

Added a --tls flag to make it optional

@awly awly merged commit 477a9ed into main Dec 2, 2025
1 check passed
@awly awly deleted the awly/https-csrf branch December 2, 2025 21:13
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.

2 participants