Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

INFRA-1014: Add returned email in headers to log #1

Merged
merged 1 commit into from
Jul 29, 2020

Conversation

jeremych1000
Copy link

@jeremych1000 jeremych1000 commented Jul 29, 2020

AWS ALB returns email information in a JWT token under X-Amzn-Oidc-Data, this decodes the payload inside that, and adds the email of the user into the logs.

For requests that are not signed, jwtHeader.Email will be an empty string.

ref - https://docs.aws.amazon.com/elasticloadbalancing/latest/application/listener-authenticate-users.html#user-claims-encoding

@jeremych1000 jeremych1000 self-assigned this Jul 29, 2020
@jeremych1000 jeremych1000 requested a review from sgrad July 29, 2020 14:59
@jeremych1000 jeremych1000 merged commit 16e2fe7 into master Jul 29, 2020
@jeremych1000 jeremych1000 deleted the feature/INFRA-1014 branch November 4, 2020 13:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants