Skip to content

httpd: make open access explicit via AllowAllAuthenticator#44

Merged
mvo5 merged 1 commit into
systemd:mainfrom
katexochen:allow-all-auth
May 7, 2026
Merged

httpd: make open access explicit via AllowAllAuthenticator#44
mvo5 merged 1 commit into
systemd:mainfrom
katexochen:allow-all-auth

Conversation

@katexochen
Copy link
Copy Markdown
Contributor

Previously an empty authenticators list silently allowed all requests, making any future code path that fails to push an authenticator a latent open-access bug. The middleware now always iterates and fails closed on an empty list; --insecure and the mTLS-only path push an explicit AllowAllAuthenticator instead.

Previously an empty authenticators list silently allowed all requests,
making any future code path that fails to push an authenticator a
latent open-access bug. The middleware now always iterates and fails
closed on an empty list; --insecure and the mTLS-only path push an
explicit AllowAllAuthenticator instead.

Signed-off-by: Paul Meyer <katexochen0@gmail.com>
Copy link
Copy Markdown
Contributor

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

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

Very nice, thank you!

// mTLS verifies the client during the TLS handshake; no
// additional per-request HTTP authentication is needed.
authenticators.push(Box::new(AllowAllAuthenticator {
reason: "mTLS verified at TLS layer",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I like this idea to include the "reason"

@mvo5 mvo5 merged commit b05b680 into systemd:main May 7, 2026
3 checks passed
@katexochen katexochen deleted the allow-all-auth branch May 7, 2026 09:54
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