Skip to content

feat: add bypass, session-duration, and auto-redirect annotations#278

Open
twiechert wants to merge 2 commits intoSTRRL:masterfrom
twiechert:feat/cloudflare-access-app-settings
Open

feat: add bypass, session-duration, and auto-redirect annotations#278
twiechert wants to merge 2 commits intoSTRRL:masterfrom
twiechert:feat/cloudflare-access-app-settings

Conversation

@twiechert
Copy link
Copy Markdown

@twiechert twiechert commented Feb 24, 2026

Builds on #277. Three new annotations for Access Application settings:

cloudflare-tunnel-ingress-controller.strrl.dev/cloudflare-access-bypass: "true"
cloudflare-tunnel-ingress-controller.strrl.dev/cloudflare-access-session-duration: "1h"
cloudflare-tunnel-ingress-controller.strrl.dev/cloudflare-access-auto-redirect: "true"
  • bypass: I use this for exposing my IdP via the tunnel.
  • session-duration: overrides the default 24h session. Shorter durations for sensitive services.
  • auto-redirect: skips the IdP selection page and redirects straight to the provider.

Add support for managing Cloudflare Access Applications directly from
Kubernetes Ingress annotations, co-locating access policy with the
services it protects.

New annotations:
- cloudflare-access-allowed-group: comma-separated Access Group IDs
  that are allowed access (creates an allow policy)
- cloudflare-access-denied-group: comma-separated Access Group IDs
  that are denied access (creates a higher-precedence deny policy)

When allowed-group is set, the controller creates a self-hosted Access
Application for the hostname with deterministic naming (ctic:<tunnel>:<host>)
for ownership tracking. Applications are reconciled on each sync:
created, updated, or deleted to match the desired state.

This keeps the controller IdP-agnostic — groups encapsulate the
OIDC/email/mTLS logic and are referenced by ID.
New annotations for Access Application settings:
- cloudflare-access-bypass: "true" — creates a bypass policy (no auth)
- cloudflare-access-session-duration: "1h" — override default 24h
- cloudflare-access-auto-redirect: "true" — skip IdP selection page
@STRRL
Copy link
Copy Markdown
Owner

STRRL commented Feb 27, 2026

hey sorry for the lates response, I will take a look this PR tonight or this weekend

@STRRL
Copy link
Copy Markdown
Owner

STRRL commented Feb 27, 2026

happy hacking!

@STRRL
Copy link
Copy Markdown
Owner

STRRL commented Feb 27, 2026

thanks for your contribution! cheers! 🍻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants