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: log User-Agent #7908

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

ra: log User-Agent #7908

wants to merge 8 commits into from

Conversation

jsha
Copy link
Contributor

@jsha jsha commented Dec 20, 2024

In the WFE, store the User-Agent in a context.Context object. In our gRPC interceptors, pass that field in a Metadata header, and re-add it to Context on the server side.

Add a test in the gRPC interceptors that User-Agent is properly propagated.

Note: this adds a new setup() function for the gRPC tests that is currently only used by the new test. I'll upload another PR shortly that expands the use of that function to more tests.

Fixes #7792

jsha and others added 6 commits December 20, 2024 11:06
This allows us to log the time since last issuance (in the RA).

It also allows us to delete FQDNSetExists once this is deployed.
@jsha jsha requested a review from a team as a code owner December 20, 2024 22:09
@jsha jsha requested review from jprenken and removed request for a team December 20, 2024 22:09
jprenken
jprenken previously approved these changes Dec 20, 2024
@jprenken jprenken requested review from a team and aarongable and removed request for a team December 20, 2024 22:12
aarongable
aarongable previously approved these changes Dec 20, 2024
@@ -18,12 +18,14 @@ import (

"github.com/letsencrypt/boulder/cmd"
berrors "github.com/letsencrypt/boulder/errors"
"github.com/letsencrypt/boulder/web"
Copy link
Contributor

Choose a reason for hiding this comment

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

It feels a little odd to have a dependency going from grpc to web. I think it's probably the right thing to do, given the existence of //web/context.go, but it does make me think that file should maybe be moved to its own package someday.

Base automatically changed from use-timestampsforwindow-to-check-renewal to main January 6, 2025 18:16
@jsha jsha dismissed stale reviews from aarongable and jprenken January 6, 2025 18:16

The base branch was changed.

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.

Emit lifetimeRemaining metrics for each renewal, by UA
3 participants