Skip to content

Include sub field in log output lines #1051

@jasonprado

Description

@jasonprado

Is your feature request related to a problem? Please describe.
When examining DSS logs I would like to quickly filter requests from a specific authorized USS client.

Describe the solution you'd like
Include the sub field of the request's decoded JWT in a field in the JSON log entry for each request. req_sub would look parallel next to req_dump and similar fields.

Describe alternatives you've considered

  • Process logs and decode JWT headers then re-remit the log with the sub value extracted.
  • Extract the uss_base_url from certain operations and filter based on them. Not all requests have this, however.

Additional context
I'd like to contribute this if we can get consensus on adding it and the format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal prioritydssRelating to one of the DSS implementationsfeatureIssue would improve software

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions