Skip to content

[Bug]: alpha config secretSource.value not base64 decoding #3334

@ProbstDJakob

Description

@ProbstDJakob

OAuth2-Proxy Version

7.14.2

Provider

oidc

Expected Behaviour

The alpha config injectRequestHeaders.secretSource.value gets base64 decoded.

Current Behaviour

The alpha config injectRequestHeaders.secretSource.value gets injected as is and thus is base64 encoded. Furthermore the docs still state that the HeaderValue expects the squashed values and the How to inject custom headers example is invalid yaml (misses values: two times).

Steps To Reproduce

Write a configuration which injects request headers with secret source values and dump the request (for example with netcat) to inspect the header.

Possible Solutions

Either decode the base64 value (probably best) or adapt the docs to state that the string must not be base64 decoded (and also the comment in the code).

Configuration details or additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions