Skip to content
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

ra: Gate OCSP Must-Staple issuance on account-based allow list #7976

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

beautifulentropy
Copy link
Member

@beautifulentropy beautifulentropy commented Jan 24, 2025

Add support in the RA for an allow list of accounts permitted to request certificates containing the OCSP Must-Staple extension. If no allow list is configured, all accounts are permitted. When a list is provided, Finalize requests with Must-Staple are rejected unless the account is on the list, and metrics are updated to track allowed and denied requests.

Fixes #7914


Warning

Do not merge until #7959 has been merged.

@beautifulentropy beautifulentropy requested a review from a team as a code owner January 24, 2025 16:01
@beautifulentropy beautifulentropy requested review from jsha and removed request for a team January 24, 2025 16:01
jsha
jsha previously approved these changes Jan 24, 2025
ra/ra.go Outdated Show resolved Hide resolved
Base automatically changed from profile-selection-allowlist to main January 24, 2025 17:27
@beautifulentropy beautifulentropy dismissed jsha’s stale review January 24, 2025 17:27

The base branch was changed.

@beautifulentropy beautifulentropy changed the title RA: Gate OCSP Must-Staple issuance on account-based allow list ra: Gate OCSP Must-Staple issuance on account-based allow list Jan 24, 2025
Comment on lines +959 to +960
if ra.mustStapleAllowList != nil {
if issuance.ContainsMustStaple(csr.Extensions) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I'd collapse these onto a single line, to prevent too much nesting, and to prevent readers from being confused about which of these three consecutive if clauses the else below corresponds to

Suggested change
if ra.mustStapleAllowList != nil {
if issuance.ContainsMustStaple(csr.Extensions) {
if ra.mustStapleAllowList != nil && issuance.ContainsMustStaple(csr.Extensions) {

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.

Create allow-list for OCSP Must-Staple
4 participants