HUB
Sign inSign up

oneinchlunch/tangerine-gateway

By oneinchlunch

•Updated 13 days ago

OIDC SSO gateway for the Tangerine Pulp console.

Image
Security
Integration & delivery
Content management system
0

150

oneinchlunch/tangerine-gateway repository overview

⁠Tangerine

OIDC single sign-on for stock Pulp.

Tangerine cannot broker OIDC by itself: it is a static SPA, Pulp has no token exchange, and stock Pulp does not verify a signed header. This small Python service closes that gap. It answers Traefik forwardAuth requests with a base64 JSON identity header that Pulp reads through JSONHeaderRemoteAuthentication. It does not modify or fork Pulp.

The Tangerine UI remains a static image; the gateway is optional and runs beside it. Local Pulp password login can stay enabled as a break-glass path.

⁠Providers

ProviderLoginAccess rules
Google WorkspaceOIDC, optional hosted-domain policyGroups and roles
Microsoft Entra IDOIDC, single or allowlisted tenantsSecurity groups and app roles
KeycloakOIDCGroups and roles
Generic OIDCOIDC discoveryGroups and roles

⁠What it adds

  • Declarative access rules map IdP groups or roles to Pulp groups and roles.
  • Baseline, strict, and protected groups keep multiple providers from stripping each other's memberships.
  • Repository-scoped administrators see only assigned repositories and route writes through the gateway.
  • Domain/UPN allowlists, email-verification checks, and optional scheduled directory sync.
  • Gateway-side task waiting, provider audit, rate limits, encrypted ID tokens, and an admin preview that writes nothing.

⁠Quick start

docker pull oneinchlunch/tangerine-gateway:0.2.0

The normal deployment is the Tangerine Helm chart⁠ with SSO enabled:

helm upgrade --install tangerine \
  oci://registry-1.docker.io/oneinchlunch/tangerine \
  --version 0.3.0 --namespace pulp \
  --set image.tag=0.2.0 \
  --set gateway.enabled=true \
  --set gateway.externalBaseUrl=https://pulp.example.com \
  --set gateway.existingSecret=tangerine-gateway-auth \
  --set gateway.secretFilesSecret=tangerine-idp-secrets \
  --set ingress.hosts[0].host=pulp.example.com

The chart creates the gateway Deployment, Service, Ingress, forwardAuth and header-stripping middlewares, and an internal PostgreSQL store. Use an external database Secret for production HA.

⁠Pulp settings

Pulp must trust the identity header only after the ingress strips inbound copies and the NetworkPolicy isolates Pulp from other namespaces. The SSO runbook⁠ has the exact JSONHeaderRemoteAuthentication settings, middleware order, provider registration, access rules, and verification steps.

⁠Documentation

⁠Tags

0.2.0 is the current published gateway image. Match the gateway image to the UI release in the same Helm upgrade.

⁠Security

The identity header is unsigned. Pulp must be reachable only through an ingress that strips inbound X-Tangerine-Identity before forwardAuth, and the CNI must enforce NetworkPolicy. Report vulnerabilities through the repository's security policy⁠.

⁠License

Apache License 2.0. See LICENSE⁠.

Tag summary

Content type

Image

Digest

sha256:081736b7f…

Size

58.8 MB

Last updated

13 days ago

docker pull oneinchlunch/tangerine-gateway:0.1.0