Sign inSign up

richardjkendall/oidc-rproxy

By richardjkendall

•Updated 27 days ago

Apache configured to perform authentication of user before proxying traffic to an upstream service

Image
0

3.6K

richardjkendall/oidc-rproxy repository overview

⁠oidc-rproxy

Apache httpd configured as a reverse proxy. It protects the upstream service using an OIDC provider like Azure AD.

This is packaged as a Docker container and it is available here https://hub.docker.com/r/richardjkendall/oidc-rproxy⁠

⁠Configuration

The container uses a number of environment variables to pass in configuration. They are defined below:

VariablePurposeExample
OIDC_PROVIDER_METADATA_URLMetadata URL for the OIDC Providerhttps://host.domain/.well-known/openid-configuration⁠
OIDC_PROVIDER_JWKS_URIURI for the JSON Web Key Set for the OIDC providerhttps://host.server/keys⁠
OIDC_CLIENT_IDClient ID as configured for this applicationn/a
OIDC_CLIENT_SECRETClient secret as configured for this applicationn/a
OIDC_CRYPTO_PASSPRHASEPassphrase used to secure session cookiesn/a
OIDC_REMOTE_USERWhich claim to use to set the REMOTE_USER variable, defaults to 'email' if not suppliedemail or preferred_username
OIDC_AUTH_CONDAny special authorisation rules to use. Defaults to 'valid-user' if not set, see note below.n/a
DOMAINDomain where the proxy is deployedservice.domain.com
PORTPort on which the proxy is running and exposed80
SCHEMEURL scheme used to expose the proxyhttps
UPSTREAMhost and port for the upstream service being projected by the proxyupstream:port/
⁠OIDC_AUTH_COND

For more help filling this in, see the documentation for mod_auth_openidc here https://github.com/zmartzone/mod_auth_openidc/wiki/Authorization⁠

Tag summary

Content type

Image

Digest

sha256:342f14a48…

Size

61.9 MB

Last updated

27 days ago

docker pull richardjkendall/oidc-rproxy