2026-02-20 12:55:59 -08:00
|
|
|
---
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: ConfigMap
|
|
|
|
|
metadata:
|
|
|
|
|
name: authentik-blueprints
|
|
|
|
|
namespace: authentik
|
|
|
|
|
data:
|
2026-02-20 17:39:50 -08:00
|
|
|
common.yaml: |
|
2026-02-20 12:55:59 -08:00
|
|
|
version: 1
|
|
|
|
|
metadata:
|
2026-02-20 17:39:50 -08:00
|
|
|
name: BlumeOps Common Identity
|
2026-02-20 12:55:59 -08:00
|
|
|
labels:
|
2026-02-20 17:39:50 -08:00
|
|
|
blueprints.goauthentik.io/description: "Shared groups and identity resources"
|
2026-02-20 12:55:59 -08:00
|
|
|
entries:
|
|
|
|
|
# admins group — gates access to admin-only applications
|
|
|
|
|
- model: authentik_core.group
|
|
|
|
|
id: admins-group
|
|
|
|
|
identifiers:
|
|
|
|
|
name: admins
|
|
|
|
|
attrs:
|
|
|
|
|
name: admins
|
|
|
|
|
|
2026-02-20 17:39:50 -08:00
|
|
|
mfa.yaml: |
|
|
|
|
|
version: 1
|
|
|
|
|
metadata:
|
|
|
|
|
name: BlumeOps MFA Enforcement
|
|
|
|
|
labels:
|
|
|
|
|
blueprints.goauthentik.io/description: "Require MFA on default authentication flow"
|
|
|
|
|
entries:
|
|
|
|
|
# Require MFA — force_setup prompts users without MFA to enroll.
|
|
|
|
|
- model: authentik_stages_authenticator_validate.authenticatorvalidatestage
|
|
|
|
|
identifiers:
|
|
|
|
|
name: default-authentication-mfa-validation
|
|
|
|
|
attrs:
|
|
|
|
|
not_configured_action: configure
|
|
|
|
|
device_classes:
|
|
|
|
|
- totp
|
|
|
|
|
- webauthn
|
|
|
|
|
- static
|
|
|
|
|
configuration_stages:
|
|
|
|
|
- !Find [authentik_stages_authenticator_totp.authenticatortotpstage, [name, default-authenticator-totp-setup]]
|
|
|
|
|
- !Find [authentik_stages_authenticator_static.authenticatorstaticstage, [name, default-authenticator-static-setup]]
|
|
|
|
|
|
|
|
|
|
grafana.yaml: |
|
|
|
|
|
version: 1
|
|
|
|
|
metadata:
|
|
|
|
|
name: BlumeOps Grafana SSO
|
|
|
|
|
labels:
|
|
|
|
|
blueprints.goauthentik.io/description: "Grafana OIDC provider and application"
|
|
|
|
|
entries:
|
2026-02-20 12:55:59 -08:00
|
|
|
# OAuth2 provider for Grafana
|
|
|
|
|
- model: authentik_providers_oauth2.oauth2provider
|
|
|
|
|
id: grafana-provider
|
|
|
|
|
identifiers:
|
|
|
|
|
name: Grafana
|
|
|
|
|
attrs:
|
|
|
|
|
name: Grafana
|
|
|
|
|
authorization_flow: !Find [authentik_flows.flow, [slug, default-provider-authorization-implicit-consent]]
|
|
|
|
|
invalidation_flow: !Find [authentik_flows.flow, [slug, default-provider-invalidation-flow]]
|
|
|
|
|
client_type: confidential
|
|
|
|
|
client_id: grafana
|
|
|
|
|
client_secret: !Env AUTHENTIK_GRAFANA_CLIENT_SECRET
|
|
|
|
|
redirect_uris:
|
|
|
|
|
- matching_mode: strict
|
|
|
|
|
url: https://grafana.ops.eblu.me/login/generic_oauth
|
|
|
|
|
- matching_mode: strict
|
|
|
|
|
url: https://grafana.tail8d86e.ts.net/login/generic_oauth
|
|
|
|
|
signing_key: !Find [authentik_crypto.certificatekeypair, [name, authentik Self-signed Certificate]]
|
|
|
|
|
property_mappings:
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, openid]]
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, email]]
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, profile]]
|
|
|
|
|
sub_mode: hashed_user_id
|
|
|
|
|
include_claims_in_id_token: true
|
|
|
|
|
|
|
|
|
|
# Grafana application — linked to the OAuth2 provider
|
|
|
|
|
- model: authentik_core.application
|
|
|
|
|
id: grafana-app
|
|
|
|
|
identifiers:
|
|
|
|
|
slug: grafana
|
|
|
|
|
attrs:
|
|
|
|
|
name: Grafana
|
|
|
|
|
slug: grafana
|
|
|
|
|
provider: !KeyOf grafana-provider
|
|
|
|
|
meta_launch_url: https://grafana.ops.eblu.me
|
|
|
|
|
policy_engine_mode: any
|
|
|
|
|
|
|
|
|
|
# Policy binding — restrict Grafana to admins group
|
|
|
|
|
- model: authentik_policies.policybinding
|
|
|
|
|
identifiers:
|
|
|
|
|
order: 0
|
|
|
|
|
target: !KeyOf grafana-app
|
2026-02-20 17:39:50 -08:00
|
|
|
group: !Find [authentik_core.group, [name, admins]]
|
2026-02-20 12:55:59 -08:00
|
|
|
attrs:
|
|
|
|
|
target: !KeyOf grafana-app
|
2026-02-20 17:39:50 -08:00
|
|
|
group: !Find [authentik_core.group, [name, admins]]
|
|
|
|
|
order: 0
|
|
|
|
|
enabled: true
|
|
|
|
|
negate: false
|
|
|
|
|
timeout: 30
|
|
|
|
|
|
|
|
|
|
forgejo.yaml: |
|
|
|
|
|
version: 1
|
|
|
|
|
metadata:
|
|
|
|
|
name: BlumeOps Forgejo SSO
|
|
|
|
|
labels:
|
|
|
|
|
blueprints.goauthentik.io/description: "Forgejo OIDC provider and application"
|
|
|
|
|
entries:
|
|
|
|
|
# OAuth2 provider for Forgejo
|
|
|
|
|
- model: authentik_providers_oauth2.oauth2provider
|
|
|
|
|
id: forgejo-provider
|
|
|
|
|
identifiers:
|
|
|
|
|
name: Forgejo
|
|
|
|
|
attrs:
|
|
|
|
|
name: Forgejo
|
|
|
|
|
authorization_flow: !Find [authentik_flows.flow, [slug, default-provider-authorization-implicit-consent]]
|
|
|
|
|
invalidation_flow: !Find [authentik_flows.flow, [slug, default-provider-invalidation-flow]]
|
|
|
|
|
client_type: confidential
|
|
|
|
|
client_id: forgejo
|
|
|
|
|
client_secret: !Env AUTHENTIK_FORGEJO_CLIENT_SECRET
|
|
|
|
|
redirect_uris:
|
|
|
|
|
- matching_mode: strict
|
Expose Forgejo publicly at forge.eblu.me (#278)
## Summary
Expose Forgejo publicly at `forge.eblu.me` via the Fly.io reverse proxy — the first dynamic, authenticated public-facing service.
- **Forgejo hardening:** Domain changed to forge.eblu.me, SSH stays on forge.ops.eblu.me, reverse proxy trust headers configured, local registration locked to external-only (Authentik SSO)
- **Tailscale Ingress:** ExternalName Service + Ingress in tailscale-operator creates forge.tail8d86e.ts.net endpoint
- **Fly.io proxy:** nginx server block with rate-limited auth endpoints (3r/s), fail2ban with custom nginx-deny action, security headers, /swagger blocked, WebSocket support, 512m body limit
- **Authentik:** OAuth callback updated to forge.eblu.me
- **DNS/TLS:** CNAME record in Pulumi, cert in fly-setup
- **Rename:** ~29 files updated from forge.ops.eblu.me to forge.eblu.me (HTTPS refs only; SSH, container builds, and Caddy table kept as-is)
## Deployment Order
1. `mise run provision-indri -- --tags forgejo` (config changes)
2. Verify forge.ops.eblu.me still works
3. `argocd app set tailscale-operator --revision feature/forge-public && argocd app sync tailscale-operator`
4. Verify `curl https://forge.tail8d86e.ts.net`
5. `cd fly && fly deploy`
6. Verify pre-DNS: `curl -H "Host: forge.eblu.me" https://blumeops-proxy.fly.dev/`
7. `fly certs add forge.eblu.me -a blumeops-proxy`
8. `argocd app set authentik --revision feature/forge-public && argocd app sync authentik`
9. `mise run dns-preview && mise run dns-up`
10. Full verification (see below)
11. Rehearse `mise run fly-shutoff`
12. After merge: reset ArgoCD revisions to main, re-sync
## Verification Checklist
- [ ] forge.eblu.me loads, shows public repos
- [ ] forge.ops.eblu.me still works from tailnet
- [ ] SSH clone via forge.ops.eblu.me:2222 works
- [ ] HTTPS clone via forge.eblu.me works
- [ ] UI shows forge.eblu.me for HTTPS clone, forge.ops.eblu.me for SSH
- [ ] /swagger returns 403
- [ ] Rapid login attempts trigger 429 rate limit
- [ ] fail2ban bans after 5 failed logins in 10 minutes
- [ ] ArgoCD can still sync (SSH unaffected)
- [ ] `mise run fly-shutoff` stops all public traffic
- [ ] `mise run services-check` passes
Reviewed-on: https://forge.eblu.me/eblume/blumeops/pulls/278
2026-03-03 08:40:41 -08:00
|
|
|
url: https://forge.eblu.me/user/oauth2/authentik/callback
|
2026-02-20 17:39:50 -08:00
|
|
|
signing_key: !Find [authentik_crypto.certificatekeypair, [name, authentik Self-signed Certificate]]
|
|
|
|
|
property_mappings:
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, openid]]
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, email]]
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, profile]]
|
|
|
|
|
sub_mode: hashed_user_id
|
|
|
|
|
include_claims_in_id_token: true
|
|
|
|
|
|
|
|
|
|
# Forgejo application — linked to the OAuth2 provider
|
|
|
|
|
- model: authentik_core.application
|
|
|
|
|
id: forgejo-app
|
|
|
|
|
identifiers:
|
|
|
|
|
slug: forgejo
|
|
|
|
|
attrs:
|
|
|
|
|
name: Forgejo
|
|
|
|
|
slug: forgejo
|
|
|
|
|
provider: !KeyOf forgejo-provider
|
Expose Forgejo publicly at forge.eblu.me (#278)
## Summary
Expose Forgejo publicly at `forge.eblu.me` via the Fly.io reverse proxy — the first dynamic, authenticated public-facing service.
- **Forgejo hardening:** Domain changed to forge.eblu.me, SSH stays on forge.ops.eblu.me, reverse proxy trust headers configured, local registration locked to external-only (Authentik SSO)
- **Tailscale Ingress:** ExternalName Service + Ingress in tailscale-operator creates forge.tail8d86e.ts.net endpoint
- **Fly.io proxy:** nginx server block with rate-limited auth endpoints (3r/s), fail2ban with custom nginx-deny action, security headers, /swagger blocked, WebSocket support, 512m body limit
- **Authentik:** OAuth callback updated to forge.eblu.me
- **DNS/TLS:** CNAME record in Pulumi, cert in fly-setup
- **Rename:** ~29 files updated from forge.ops.eblu.me to forge.eblu.me (HTTPS refs only; SSH, container builds, and Caddy table kept as-is)
## Deployment Order
1. `mise run provision-indri -- --tags forgejo` (config changes)
2. Verify forge.ops.eblu.me still works
3. `argocd app set tailscale-operator --revision feature/forge-public && argocd app sync tailscale-operator`
4. Verify `curl https://forge.tail8d86e.ts.net`
5. `cd fly && fly deploy`
6. Verify pre-DNS: `curl -H "Host: forge.eblu.me" https://blumeops-proxy.fly.dev/`
7. `fly certs add forge.eblu.me -a blumeops-proxy`
8. `argocd app set authentik --revision feature/forge-public && argocd app sync authentik`
9. `mise run dns-preview && mise run dns-up`
10. Full verification (see below)
11. Rehearse `mise run fly-shutoff`
12. After merge: reset ArgoCD revisions to main, re-sync
## Verification Checklist
- [ ] forge.eblu.me loads, shows public repos
- [ ] forge.ops.eblu.me still works from tailnet
- [ ] SSH clone via forge.ops.eblu.me:2222 works
- [ ] HTTPS clone via forge.eblu.me works
- [ ] UI shows forge.eblu.me for HTTPS clone, forge.ops.eblu.me for SSH
- [ ] /swagger returns 403
- [ ] Rapid login attempts trigger 429 rate limit
- [ ] fail2ban bans after 5 failed logins in 10 minutes
- [ ] ArgoCD can still sync (SSH unaffected)
- [ ] `mise run fly-shutoff` stops all public traffic
- [ ] `mise run services-check` passes
Reviewed-on: https://forge.eblu.me/eblume/blumeops/pulls/278
2026-03-03 08:40:41 -08:00
|
|
|
meta_launch_url: https://forge.eblu.me
|
2026-02-20 17:39:50 -08:00
|
|
|
policy_engine_mode: any
|
|
|
|
|
|
|
|
|
|
# Policy binding — restrict Forgejo to admins group
|
|
|
|
|
- model: authentik_policies.policybinding
|
|
|
|
|
identifiers:
|
|
|
|
|
order: 0
|
|
|
|
|
target: !KeyOf forgejo-app
|
|
|
|
|
group: !Find [authentik_core.group, [name, admins]]
|
|
|
|
|
attrs:
|
|
|
|
|
target: !KeyOf forgejo-app
|
|
|
|
|
group: !Find [authentik_core.group, [name, admins]]
|
2026-02-20 12:55:59 -08:00
|
|
|
order: 0
|
|
|
|
|
enabled: true
|
|
|
|
|
negate: false
|
|
|
|
|
timeout: 30
|
2026-02-21 08:45:06 -08:00
|
|
|
|
|
|
|
|
zot.yaml: |
|
|
|
|
|
version: 1
|
|
|
|
|
metadata:
|
|
|
|
|
name: BlumeOps Zot SSO
|
|
|
|
|
labels:
|
|
|
|
|
blueprints.goauthentik.io/description: "Zot OIDC provider, application, and CI identity"
|
|
|
|
|
entries:
|
|
|
|
|
# artifact-workloads group (CI push identity)
|
|
|
|
|
- model: authentik_core.group
|
|
|
|
|
id: artifact-workloads-group
|
|
|
|
|
identifiers:
|
|
|
|
|
name: artifact-workloads
|
|
|
|
|
attrs:
|
|
|
|
|
name: artifact-workloads
|
|
|
|
|
|
|
|
|
|
# Service account for CI push (admin sets password via UI after deploy)
|
|
|
|
|
- model: authentik_core.user
|
|
|
|
|
id: zot-ci-user
|
|
|
|
|
identifiers:
|
|
|
|
|
username: zot-ci
|
|
|
|
|
attrs:
|
|
|
|
|
username: zot-ci
|
|
|
|
|
name: Zot CI Service Account
|
|
|
|
|
type: service_account
|
|
|
|
|
is_active: true
|
|
|
|
|
groups:
|
|
|
|
|
- !KeyOf artifact-workloads-group
|
|
|
|
|
|
|
|
|
|
# OAuth2 provider for Zot
|
|
|
|
|
- model: authentik_providers_oauth2.oauth2provider
|
|
|
|
|
id: zot-provider
|
|
|
|
|
identifiers:
|
|
|
|
|
name: Zot
|
|
|
|
|
attrs:
|
|
|
|
|
name: Zot
|
|
|
|
|
authorization_flow: !Find [authentik_flows.flow, [slug, default-provider-authorization-implicit-consent]]
|
|
|
|
|
invalidation_flow: !Find [authentik_flows.flow, [slug, default-provider-invalidation-flow]]
|
|
|
|
|
client_type: confidential
|
|
|
|
|
client_id: zot
|
|
|
|
|
client_secret: !Env AUTHENTIK_ZOT_CLIENT_SECRET
|
|
|
|
|
redirect_uris:
|
|
|
|
|
- matching_mode: strict
|
|
|
|
|
url: https://registry.ops.eblu.me/zot/auth/callback/oidc
|
|
|
|
|
signing_key: !Find [authentik_crypto.certificatekeypair, [name, authentik Self-signed Certificate]]
|
|
|
|
|
property_mappings:
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, openid]]
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, email]]
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, profile]]
|
|
|
|
|
sub_mode: hashed_user_id
|
|
|
|
|
include_claims_in_id_token: true
|
|
|
|
|
|
|
|
|
|
# Zot application — linked to the OAuth2 provider
|
|
|
|
|
- model: authentik_core.application
|
|
|
|
|
id: zot-app
|
|
|
|
|
identifiers:
|
|
|
|
|
slug: zot
|
|
|
|
|
attrs:
|
|
|
|
|
name: Zot Registry
|
|
|
|
|
slug: zot
|
|
|
|
|
provider: !KeyOf zot-provider
|
|
|
|
|
meta_launch_url: https://registry.ops.eblu.me
|
|
|
|
|
policy_engine_mode: any
|
|
|
|
|
|
2026-02-21 12:20:29 -08:00
|
|
|
# Policy binding — allow admins group access to Zot
|
2026-02-21 08:45:06 -08:00
|
|
|
- model: authentik_policies.policybinding
|
|
|
|
|
identifiers:
|
|
|
|
|
order: 0
|
|
|
|
|
target: !KeyOf zot-app
|
|
|
|
|
group: !Find [authentik_core.group, [name, admins]]
|
|
|
|
|
attrs:
|
|
|
|
|
target: !KeyOf zot-app
|
|
|
|
|
group: !Find [authentik_core.group, [name, admins]]
|
|
|
|
|
order: 0
|
|
|
|
|
enabled: true
|
|
|
|
|
negate: false
|
|
|
|
|
timeout: 30
|
2026-02-21 12:20:29 -08:00
|
|
|
|
|
|
|
|
# Policy binding — allow artifact-workloads group access to Zot (CI push)
|
|
|
|
|
- model: authentik_policies.policybinding
|
|
|
|
|
identifiers:
|
|
|
|
|
order: 1
|
|
|
|
|
target: !KeyOf zot-app
|
|
|
|
|
group: !KeyOf artifact-workloads-group
|
|
|
|
|
attrs:
|
|
|
|
|
target: !KeyOf zot-app
|
|
|
|
|
group: !KeyOf artifact-workloads-group
|
|
|
|
|
order: 1
|
|
|
|
|
enabled: true
|
|
|
|
|
negate: false
|
|
|
|
|
timeout: 30
|
2026-02-21 20:05:44 -08:00
|
|
|
|
2026-03-05 09:07:25 -08:00
|
|
|
argocd.yaml: |
|
|
|
|
|
version: 1
|
|
|
|
|
metadata:
|
|
|
|
|
name: BlumeOps ArgoCD SSO
|
|
|
|
|
labels:
|
|
|
|
|
blueprints.goauthentik.io/description: "ArgoCD OIDC provider and application"
|
|
|
|
|
entries:
|
|
|
|
|
# OAuth2 provider for ArgoCD
|
|
|
|
|
- model: authentik_providers_oauth2.oauth2provider
|
|
|
|
|
id: argocd-provider
|
|
|
|
|
identifiers:
|
|
|
|
|
name: ArgoCD
|
|
|
|
|
attrs:
|
|
|
|
|
name: ArgoCD
|
|
|
|
|
authorization_flow: !Find [authentik_flows.flow, [slug, default-provider-authorization-implicit-consent]]
|
|
|
|
|
invalidation_flow: !Find [authentik_flows.flow, [slug, default-provider-invalidation-flow]]
|
2026-04-21 10:34:39 -07:00
|
|
|
client_type: public
|
2026-03-05 09:07:25 -08:00
|
|
|
client_id: argocd
|
|
|
|
|
redirect_uris:
|
|
|
|
|
- matching_mode: strict
|
|
|
|
|
url: https://argocd.ops.eblu.me/auth/callback
|
|
|
|
|
- matching_mode: strict
|
|
|
|
|
url: https://argocd.tail8d86e.ts.net/auth/callback
|
2026-04-21 10:18:08 -07:00
|
|
|
- matching_mode: strict
|
|
|
|
|
url: http://localhost:8085/auth/callback
|
2026-03-05 09:07:25 -08:00
|
|
|
signing_key: !Find [authentik_crypto.certificatekeypair, [name, authentik Self-signed Certificate]]
|
|
|
|
|
property_mappings:
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, openid]]
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, email]]
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, profile]]
|
|
|
|
|
sub_mode: hashed_user_id
|
|
|
|
|
include_claims_in_id_token: true
|
|
|
|
|
|
|
|
|
|
# ArgoCD application — linked to the OAuth2 provider
|
|
|
|
|
- model: authentik_core.application
|
|
|
|
|
id: argocd-app
|
|
|
|
|
identifiers:
|
|
|
|
|
slug: argocd
|
|
|
|
|
attrs:
|
|
|
|
|
name: ArgoCD
|
|
|
|
|
slug: argocd
|
|
|
|
|
provider: !KeyOf argocd-provider
|
|
|
|
|
meta_launch_url: https://argocd.ops.eblu.me
|
|
|
|
|
policy_engine_mode: any
|
|
|
|
|
|
|
|
|
|
# Policy binding — restrict ArgoCD to admins group
|
|
|
|
|
- model: authentik_policies.policybinding
|
|
|
|
|
identifiers:
|
|
|
|
|
order: 0
|
|
|
|
|
target: !KeyOf argocd-app
|
|
|
|
|
group: !Find [authentik_core.group, [name, admins]]
|
|
|
|
|
attrs:
|
|
|
|
|
target: !KeyOf argocd-app
|
|
|
|
|
group: !Find [authentik_core.group, [name, admins]]
|
|
|
|
|
order: 0
|
|
|
|
|
enabled: true
|
|
|
|
|
negate: false
|
|
|
|
|
timeout: 30
|
|
|
|
|
|
2026-02-21 20:05:44 -08:00
|
|
|
jellyfin.yaml: |
|
|
|
|
|
version: 1
|
|
|
|
|
metadata:
|
|
|
|
|
name: BlumeOps Jellyfin SSO
|
|
|
|
|
labels:
|
|
|
|
|
blueprints.goauthentik.io/description: "Jellyfin OIDC provider and application"
|
|
|
|
|
entries:
|
|
|
|
|
# OAuth2 provider for Jellyfin
|
|
|
|
|
- model: authentik_providers_oauth2.oauth2provider
|
|
|
|
|
id: jellyfin-provider
|
|
|
|
|
identifiers:
|
|
|
|
|
name: Jellyfin
|
|
|
|
|
attrs:
|
|
|
|
|
name: Jellyfin
|
|
|
|
|
authorization_flow: !Find [authentik_flows.flow, [slug, default-provider-authorization-implicit-consent]]
|
|
|
|
|
invalidation_flow: !Find [authentik_flows.flow, [slug, default-provider-invalidation-flow]]
|
|
|
|
|
client_type: confidential
|
|
|
|
|
client_id: jellyfin
|
|
|
|
|
client_secret: !Env AUTHENTIK_JELLYFIN_CLIENT_SECRET
|
|
|
|
|
redirect_uris:
|
|
|
|
|
- matching_mode: strict
|
|
|
|
|
url: https://jellyfin.ops.eblu.me/sso/OID/redirect/authentik
|
|
|
|
|
signing_key: !Find [authentik_crypto.certificatekeypair, [name, authentik Self-signed Certificate]]
|
|
|
|
|
property_mappings:
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, openid]]
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, email]]
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, profile]]
|
|
|
|
|
sub_mode: hashed_user_id
|
|
|
|
|
include_claims_in_id_token: true
|
|
|
|
|
|
|
|
|
|
# Jellyfin application — all authenticated users allowed (no policy binding)
|
|
|
|
|
- model: authentik_core.application
|
|
|
|
|
id: jellyfin-app
|
|
|
|
|
identifiers:
|
|
|
|
|
slug: jellyfin
|
|
|
|
|
attrs:
|
|
|
|
|
name: Jellyfin
|
|
|
|
|
slug: jellyfin
|
|
|
|
|
provider: !KeyOf jellyfin-provider
|
|
|
|
|
meta_launch_url: https://jellyfin.ops.eblu.me
|
|
|
|
|
policy_engine_mode: all
|
2026-03-16 21:59:10 -07:00
|
|
|
|
2026-04-08 17:54:12 -07:00
|
|
|
paperless.yaml: |
|
|
|
|
|
version: 1
|
|
|
|
|
metadata:
|
|
|
|
|
name: BlumeOps Paperless SSO
|
|
|
|
|
labels:
|
|
|
|
|
blueprints.goauthentik.io/description: "Paperless-ngx OIDC provider and application"
|
|
|
|
|
entries:
|
|
|
|
|
# OAuth2 provider for Paperless-ngx (confidential client)
|
|
|
|
|
- model: authentik_providers_oauth2.oauth2provider
|
|
|
|
|
id: paperless-provider
|
|
|
|
|
identifiers:
|
|
|
|
|
name: Paperless
|
|
|
|
|
attrs:
|
|
|
|
|
name: Paperless
|
|
|
|
|
authorization_flow: !Find [authentik_flows.flow, [slug, default-provider-authorization-implicit-consent]]
|
|
|
|
|
invalidation_flow: !Find [authentik_flows.flow, [slug, default-provider-invalidation-flow]]
|
|
|
|
|
client_type: confidential
|
|
|
|
|
client_id: paperless
|
|
|
|
|
client_secret: !Env AUTHENTIK_PAPERLESS_CLIENT_SECRET
|
|
|
|
|
redirect_uris:
|
|
|
|
|
- matching_mode: strict
|
|
|
|
|
url: https://paperless.ops.eblu.me/accounts/oidc/authentik/login/callback/
|
|
|
|
|
- matching_mode: strict
|
|
|
|
|
url: https://paperless.tail8d86e.ts.net/accounts/oidc/authentik/login/callback/
|
|
|
|
|
signing_key: !Find [authentik_crypto.certificatekeypair, [name, authentik Self-signed Certificate]]
|
|
|
|
|
property_mappings:
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, openid]]
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, email]]
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, profile]]
|
|
|
|
|
sub_mode: hashed_user_id
|
|
|
|
|
include_claims_in_id_token: true
|
|
|
|
|
|
|
|
|
|
# Paperless application — all authenticated users allowed
|
|
|
|
|
- model: authentik_core.application
|
|
|
|
|
id: paperless-app
|
|
|
|
|
identifiers:
|
|
|
|
|
slug: paperless
|
|
|
|
|
attrs:
|
|
|
|
|
name: Paperless
|
|
|
|
|
slug: paperless
|
|
|
|
|
provider: !KeyOf paperless-provider
|
|
|
|
|
meta_launch_url: https://paperless.ops.eblu.me
|
|
|
|
|
policy_engine_mode: all
|
|
|
|
|
|
2026-03-16 21:59:10 -07:00
|
|
|
mealie.yaml: |
|
|
|
|
|
version: 1
|
|
|
|
|
metadata:
|
|
|
|
|
name: BlumeOps Mealie SSO
|
|
|
|
|
labels:
|
|
|
|
|
blueprints.goauthentik.io/description: "Mealie OIDC provider and application"
|
|
|
|
|
entries:
|
|
|
|
|
# OAuth2 provider for Mealie (confidential — Mealie requires client_secret)
|
|
|
|
|
- model: authentik_providers_oauth2.oauth2provider
|
|
|
|
|
id: mealie-provider
|
|
|
|
|
identifiers:
|
|
|
|
|
name: Mealie
|
|
|
|
|
attrs:
|
|
|
|
|
name: Mealie
|
|
|
|
|
authorization_flow: !Find [authentik_flows.flow, [slug, default-provider-authorization-implicit-consent]]
|
|
|
|
|
invalidation_flow: !Find [authentik_flows.flow, [slug, default-provider-invalidation-flow]]
|
|
|
|
|
client_type: confidential
|
|
|
|
|
client_id: mealie
|
|
|
|
|
client_secret: !Env AUTHENTIK_MEALIE_CLIENT_SECRET
|
|
|
|
|
redirect_uris:
|
|
|
|
|
- matching_mode: strict
|
|
|
|
|
url: https://meals.ops.eblu.me/login
|
|
|
|
|
- matching_mode: strict
|
|
|
|
|
url: https://meals.tail8d86e.ts.net/login
|
|
|
|
|
signing_key: !Find [authentik_crypto.certificatekeypair, [name, authentik Self-signed Certificate]]
|
|
|
|
|
property_mappings:
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, openid]]
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, email]]
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, profile]]
|
|
|
|
|
sub_mode: hashed_user_id
|
|
|
|
|
include_claims_in_id_token: true
|
|
|
|
|
|
|
|
|
|
# Mealie application — all authenticated users allowed (admin mapped via OIDC_ADMIN_GROUP)
|
|
|
|
|
- model: authentik_core.application
|
|
|
|
|
id: mealie-app
|
|
|
|
|
identifiers:
|
|
|
|
|
slug: mealie
|
|
|
|
|
attrs:
|
|
|
|
|
name: Mealie
|
|
|
|
|
slug: mealie
|
|
|
|
|
provider: !KeyOf mealie-provider
|
|
|
|
|
meta_launch_url: https://meals.ops.eblu.me
|
|
|
|
|
policy_engine_mode: all
|
Add hephaestus sync hub to indri (launchagent, PWA, device-code OIDC) (#369)
Makes indri the canonical **heph** hub for the hub-and-spoke task/context system, deployed as a self-updating LaunchAgent managed by Ansible. Other devices (gilbert) attach as offline-capable spokes.
## What's here
- **`ansible/roles/heph`** (tag `heph`) — bootstrap `cargo install hephd` (only if absent; `--self-update` keeps it current after), version-pinned `heph-pwa` checkout served via `--web-root`, launchagent `mcquack.eblume.heph`:
```
hephd --mode server --http-addr 0.0.0.0:8787 --db … --web-root …
--oidc-issuer …/o/heph/ --oidc-audience heph
--self-update --self-update-interval-secs 600
```
`~/.cargo/bin` is on the agent `PATH` so self-update's `cargo install` works.
- **Caddy** — `heph.ops.eblu.me → localhost:8787` (TLS for the PWA secure context).
- **Authentik** — new `heph` **public device-code** OIDC app + `default-device-code-flow` bound to the default brand's `flow_device_code` (verified live: brand `authentik-default`, field currently unset → additive).
- **Docs** — `services/hephaestus.md` (Path-A seeding runbook + spoke caveat), `indri.md`, changelog fragment.
## Three features requested
- **Autoupdate** — 10-min interval (`--self-update-interval-secs 600`).
- **PWA** — `--web-root` (confirmed shipped in v1.2.0).
- **Spoke** — gilbert reconfig documented (post-merge step).
## Deploy plan (not done yet — awaiting review)
1. Seed from gilbert (Path A): `heph daemon stop` → copy `heph.db` → `DELETE FROM meta WHERE key='origin'`.
2. Sync Authentik `apps`/blueprint; verify blueprint status via API (not just logs).
3. `provision-indri --tags heph,caddy` from this branch.
4. Point gilbert at the hub + `heph auth login`.
## Known follow-ups (heph-side, tracked in the Hephaestus project)
- `heph daemon` can't bake hub/spoke config or pass `--self-update-interval-secs` → worked around by the ansible plist.
- Path-A seeding lacks a clean `hephd --owner-id`/seed command → manual `meta.origin` reset for now.
- Self-update moves hephd ahead of the ansible-pinned PWA shell over time (drift; tolerated by the SW cache, revisit on next release).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Reviewed-on: https://forge.eblu.me/eblume/blumeops/pulls/369
2026-06-05 06:46:58 -07:00
|
|
|
|
|
|
|
|
heph.yaml: |
|
|
|
|
|
version: 1
|
|
|
|
|
metadata:
|
|
|
|
|
name: BlumeOps Heph SSO
|
|
|
|
|
labels:
|
|
|
|
|
blueprints.goauthentik.io/description: "Hephaestus hub OIDC (device-code) provider, application, and device-code flow"
|
|
|
|
|
entries:
|
|
|
|
|
# Device-code flow (RFC 8628). authentik ships no default for this, so we
|
|
|
|
|
# create one and bind it to the brand below. An empty stage_configuration
|
|
|
|
|
# flow is sufficient: the already-authenticated user just confirms the code.
|
|
|
|
|
- model: authentik_flows.flow
|
|
|
|
|
id: device-code-flow
|
|
|
|
|
identifiers:
|
|
|
|
|
slug: default-device-code-flow
|
|
|
|
|
attrs:
|
|
|
|
|
name: Device code flow
|
|
|
|
|
title: Device code flow
|
|
|
|
|
slug: default-device-code-flow
|
|
|
|
|
designation: stage_configuration
|
|
|
|
|
authentication: require_authenticated
|
|
|
|
|
|
|
|
|
|
# Enable the device-code grant globally by binding the flow to the default
|
|
|
|
|
# brand (domain authentik-default). Partial update — only sets this field.
|
|
|
|
|
- model: authentik_brands.brand
|
|
|
|
|
identifiers:
|
|
|
|
|
domain: authentik-default
|
|
|
|
|
attrs:
|
|
|
|
|
flow_device_code: !KeyOf device-code-flow
|
|
|
|
|
|
|
|
|
|
# OAuth2 provider for heph — PUBLIC client (device-code + PKCE, no secret).
|
|
|
|
|
# client_id doubles as the token audience the hub verifies (--oidc-audience heph),
|
|
|
|
|
# and the app slug 'heph' is the issuer path (/application/o/heph/).
|
|
|
|
|
- model: authentik_providers_oauth2.oauth2provider
|
|
|
|
|
id: heph-provider
|
|
|
|
|
identifiers:
|
|
|
|
|
name: Heph
|
|
|
|
|
attrs:
|
|
|
|
|
name: Heph
|
|
|
|
|
authorization_flow: !Find [authentik_flows.flow, [slug, default-provider-authorization-implicit-consent]]
|
|
|
|
|
invalidation_flow: !Find [authentik_flows.flow, [slug, default-provider-invalidation-flow]]
|
|
|
|
|
client_type: public
|
|
|
|
|
client_id: heph
|
2026-06-05 07:30:31 -07:00
|
|
|
# CLI/TUI use the device-code grant (no redirect). The heph-pwa browser
|
|
|
|
|
# login uses Authorization Code + PKCE, which DOES redirect back to the
|
|
|
|
|
# app's origin — register those here (Authentik also keys token-endpoint
|
|
|
|
|
# CORS off these origins). Trailing slash matters: the PWA's redirect_uri
|
|
|
|
|
# is its base dir, e.g. https://heph.ops.eblu.me/.
|
|
|
|
|
redirect_uris:
|
|
|
|
|
- matching_mode: strict
|
|
|
|
|
url: https://heph.ops.eblu.me/
|
|
|
|
|
- matching_mode: strict
|
|
|
|
|
url: http://localhost:8787/ # local dev (hephd --web-root)
|
Add hephaestus sync hub to indri (launchagent, PWA, device-code OIDC) (#369)
Makes indri the canonical **heph** hub for the hub-and-spoke task/context system, deployed as a self-updating LaunchAgent managed by Ansible. Other devices (gilbert) attach as offline-capable spokes.
## What's here
- **`ansible/roles/heph`** (tag `heph`) — bootstrap `cargo install hephd` (only if absent; `--self-update` keeps it current after), version-pinned `heph-pwa` checkout served via `--web-root`, launchagent `mcquack.eblume.heph`:
```
hephd --mode server --http-addr 0.0.0.0:8787 --db … --web-root …
--oidc-issuer …/o/heph/ --oidc-audience heph
--self-update --self-update-interval-secs 600
```
`~/.cargo/bin` is on the agent `PATH` so self-update's `cargo install` works.
- **Caddy** — `heph.ops.eblu.me → localhost:8787` (TLS for the PWA secure context).
- **Authentik** — new `heph` **public device-code** OIDC app + `default-device-code-flow` bound to the default brand's `flow_device_code` (verified live: brand `authentik-default`, field currently unset → additive).
- **Docs** — `services/hephaestus.md` (Path-A seeding runbook + spoke caveat), `indri.md`, changelog fragment.
## Three features requested
- **Autoupdate** — 10-min interval (`--self-update-interval-secs 600`).
- **PWA** — `--web-root` (confirmed shipped in v1.2.0).
- **Spoke** — gilbert reconfig documented (post-merge step).
## Deploy plan (not done yet — awaiting review)
1. Seed from gilbert (Path A): `heph daemon stop` → copy `heph.db` → `DELETE FROM meta WHERE key='origin'`.
2. Sync Authentik `apps`/blueprint; verify blueprint status via API (not just logs).
3. `provision-indri --tags heph,caddy` from this branch.
4. Point gilbert at the hub + `heph auth login`.
## Known follow-ups (heph-side, tracked in the Hephaestus project)
- `heph daemon` can't bake hub/spoke config or pass `--self-update-interval-secs` → worked around by the ansible plist.
- Path-A seeding lacks a clean `hephd --owner-id`/seed command → manual `meta.origin` reset for now.
- Self-update moves hephd ahead of the ansible-pinned PWA shell over time (drift; tolerated by the SW cache, revisit on next release).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Reviewed-on: https://forge.eblu.me/eblume/blumeops/pulls/369
2026-06-05 06:46:58 -07:00
|
|
|
signing_key: !Find [authentik_crypto.certificatekeypair, [name, authentik Self-signed Certificate]]
|
|
|
|
|
property_mappings:
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, openid]]
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, email]]
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, profile]]
|
2026-06-06 18:07:13 -07:00
|
|
|
# offline_access: heph CLI requests "openid offline_access"; without
|
|
|
|
|
# this mapping the refresh token is session-bound and hephd's
|
|
|
|
|
# refresh_token grant 400s once the session lapses (spoke sync dies).
|
|
|
|
|
- !Find [authentik_providers_oauth2.scopemapping, [scope_name, offline_access]]
|
Add hephaestus sync hub to indri (launchagent, PWA, device-code OIDC) (#369)
Makes indri the canonical **heph** hub for the hub-and-spoke task/context system, deployed as a self-updating LaunchAgent managed by Ansible. Other devices (gilbert) attach as offline-capable spokes.
## What's here
- **`ansible/roles/heph`** (tag `heph`) — bootstrap `cargo install hephd` (only if absent; `--self-update` keeps it current after), version-pinned `heph-pwa` checkout served via `--web-root`, launchagent `mcquack.eblume.heph`:
```
hephd --mode server --http-addr 0.0.0.0:8787 --db … --web-root …
--oidc-issuer …/o/heph/ --oidc-audience heph
--self-update --self-update-interval-secs 600
```
`~/.cargo/bin` is on the agent `PATH` so self-update's `cargo install` works.
- **Caddy** — `heph.ops.eblu.me → localhost:8787` (TLS for the PWA secure context).
- **Authentik** — new `heph` **public device-code** OIDC app + `default-device-code-flow` bound to the default brand's `flow_device_code` (verified live: brand `authentik-default`, field currently unset → additive).
- **Docs** — `services/hephaestus.md` (Path-A seeding runbook + spoke caveat), `indri.md`, changelog fragment.
## Three features requested
- **Autoupdate** — 10-min interval (`--self-update-interval-secs 600`).
- **PWA** — `--web-root` (confirmed shipped in v1.2.0).
- **Spoke** — gilbert reconfig documented (post-merge step).
## Deploy plan (not done yet — awaiting review)
1. Seed from gilbert (Path A): `heph daemon stop` → copy `heph.db` → `DELETE FROM meta WHERE key='origin'`.
2. Sync Authentik `apps`/blueprint; verify blueprint status via API (not just logs).
3. `provision-indri --tags heph,caddy` from this branch.
4. Point gilbert at the hub + `heph auth login`.
## Known follow-ups (heph-side, tracked in the Hephaestus project)
- `heph daemon` can't bake hub/spoke config or pass `--self-update-interval-secs` → worked around by the ansible plist.
- Path-A seeding lacks a clean `hephd --owner-id`/seed command → manual `meta.origin` reset for now.
- Self-update moves hephd ahead of the ansible-pinned PWA shell over time (drift; tolerated by the SW cache, revisit on next release).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Reviewed-on: https://forge.eblu.me/eblume/blumeops/pulls/369
2026-06-05 06:46:58 -07:00
|
|
|
sub_mode: hashed_user_id
|
|
|
|
|
include_claims_in_id_token: true
|
|
|
|
|
|
|
|
|
|
# Heph application — linked to the OAuth2 provider
|
|
|
|
|
- model: authentik_core.application
|
|
|
|
|
id: heph-app
|
|
|
|
|
identifiers:
|
|
|
|
|
slug: heph
|
|
|
|
|
attrs:
|
|
|
|
|
name: Hephaestus
|
|
|
|
|
slug: heph
|
|
|
|
|
provider: !KeyOf heph-provider
|
|
|
|
|
meta_launch_url: https://heph.ops.eblu.me
|
|
|
|
|
policy_engine_mode: any
|
|
|
|
|
|
|
|
|
|
# Policy binding — restrict heph to admins group (single-owner, sensitive data)
|
|
|
|
|
- model: authentik_policies.policybinding
|
|
|
|
|
identifiers:
|
|
|
|
|
order: 0
|
|
|
|
|
target: !KeyOf heph-app
|
|
|
|
|
group: !Find [authentik_core.group, [name, admins]]
|
|
|
|
|
attrs:
|
|
|
|
|
target: !KeyOf heph-app
|
|
|
|
|
group: !Find [authentik_core.group, [name, admins]]
|
|
|
|
|
order: 0
|
|
|
|
|
enabled: true
|
|
|
|
|
negate: false
|
|
|
|
|
timeout: 30
|