Skip to content

OAUTH2_PROXY_UPSTREAMS is not working #1802

Description

@mehdi-benhajabbes

I'm using oauth2-proxy :7.3.0 through Kubernetes. I'm setting all my config as environment variables:

  1. I'm setting my environment variables as data in a configMap
  2. I'm injecting that data in oauth2-proxy container using envFrom and referencing my configMap

Expected Behavior

OAUTH2_PROXY_UPSTREAMS should work but it is not and the upstream is apparently set to the default 0.0.0.0:8080 causing a 502 Bad Gateway

In the configMap I'm setting
OAUTH2_PROXY_UPSTREAMS: "http://127.0.0.1:80"

When I remove OAUTH2_PROXY_UPSTREAMS from the config map and set the --upstream through command line using

args:
  - --upstream=http://127.0.0.1:80 #it's the same value I'm using for OAUTH2_PROXY_UPSTREAMS

It works as charm.

Context

I prefer setting everything as environment variables

  • Version used: 7.3.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions