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 2 commits into
base: use-timestampsforwindow-to-check-renewal
Choose a base branch
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.

Note: this change is based on #7888. DO NOT MERGE until that change merges.

@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 requested review from a team and aarongable and removed request for a team December 20, 2024 22:12
@@ -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.

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.

3 participants