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

Backport of Fix misattribution of activity log entries to incorrect auth methods into release/1.14.x #22507

Conversation

hc-github-team-secure-vault-core
Copy link
Collaborator

Backport

This PR is auto-generated from #18809 to be assessed for backporting due to the inclusion of the label backport/1.14.x.

The below text is copied from the body of the original PR.


In a production Vault Enterprise instance, I noticed incorrect information in the sys/internal/counters/activity endpoints. Eventually, I was able to spot a pattern of entities being misattributed to auth methods of the same name in child namespaces, which led me to this bug in the code.

When attempting to map from a token's path to an auth method, we need to do so with respect to the namespace of the token, which may be different from the namespace of the request, as tokens from parent namespaces can make requests that reach into child namespaces.


Overview of commits

@hc-github-team-secure-vault-core hc-github-team-secure-vault-core force-pushed the backport/activity-log-namespace/properly-pleased-stinkbug branch from e06e301 to 20fbcda Compare August 22, 2023 18:30
@hc-github-team-secure-vault-core hc-github-team-secure-vault-core force-pushed the backport/activity-log-namespace/properly-pleased-stinkbug branch from 24220fb to eb89502 Compare August 22, 2023 18:30
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Aug 22, 2023
@raskchanky raskchanky enabled auto-merge (squash) August 22, 2023 18:31
@github-actions
Copy link

Build Results:
All builds succeeded! ✅

@raskchanky raskchanky merged commit 69eeabf into release/1.14.x Aug 22, 2023
@raskchanky raskchanky deleted the backport/activity-log-namespace/properly-pleased-stinkbug branch August 22, 2023 18:48
@github-actions
Copy link

CI Results:
All Go tests succeeded! ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants