Compare commits
12 Commits
5.0.1+2024
...
custom-css
Author | SHA1 | Date | |
---|---|---|---|
c39b6ad25a | |||
1ffb62d74a | |||
5086df24fb | |||
e07d57718a | |||
553b97ba21 | |||
75f42db773 | |||
d115d5ce38 | |||
68eda3e2d7 | |||
91756202c2 | |||
bf2397b0e9 | |||
c3b01c1d27 | |||
8d32814219 |
@ -23,7 +23,7 @@ steps:
|
|||||||
FLOW_INVALIDATION_VERSION: v1
|
FLOW_INVALIDATION_VERSION: v1
|
||||||
FLOW_RECOVERY_VERSION: v1
|
FLOW_RECOVERY_VERSION: v1
|
||||||
FLOW_TRANSLATION_VERSION: v1
|
FLOW_TRANSLATION_VERSION: v1
|
||||||
SYSTEM_TENANT_VERSION: v1
|
SYSTEM_BRAND_VERSION: v1
|
||||||
NEXTCLOUD_CONFIG_VERSION: v1
|
NEXTCLOUD_CONFIG_VERSION: v1
|
||||||
SECRET_SECRET_KEY_VERSION: v1
|
SECRET_SECRET_KEY_VERSION: v1
|
||||||
SECRET_DB_PASSWORD_VERSION: v1
|
SECRET_DB_PASSWORD_VERSION: v1
|
||||||
|
13
.env.sample
13
.env.sample
@ -34,7 +34,6 @@ SECRET_ADMIN_PASS_VERSION=v1
|
|||||||
SECRET_EMAIL_PASS_VERSION=v1
|
SECRET_EMAIL_PASS_VERSION=v1
|
||||||
|
|
||||||
# X_FRAME_OPTIONS_ALLOW_FROM=dashboard.example.org
|
# X_FRAME_OPTIONS_ALLOW_FROM=dashboard.example.org
|
||||||
AUTHENTIK_COLOR_BACKGROUND_LIGHT=#1c1e21
|
|
||||||
|
|
||||||
## FLOW OPTIONS
|
## FLOW OPTIONS
|
||||||
# WELCOME_MESSAGE="Welcome to Authentik"
|
# WELCOME_MESSAGE="Welcome to Authentik"
|
||||||
@ -47,6 +46,12 @@ COPY_ASSETS="flow_background.jpg|app:/web/dist/assets/images/"
|
|||||||
COPY_ASSETS="$COPY_ASSETS icon_left_brand.svg|app:/web/dist/assets/icons/"
|
COPY_ASSETS="$COPY_ASSETS icon_left_brand.svg|app:/web/dist/assets/icons/"
|
||||||
COPY_ASSETS="$COPY_ASSETS icon.png|app:/web/dist/assets/icons/"
|
COPY_ASSETS="$COPY_ASSETS icon.png|app:/web/dist/assets/icons/"
|
||||||
|
|
||||||
|
# Default CSS customisation, just background colour
|
||||||
|
COMPOSE_FILE="$COMPOSE_FILE:compose.css.yml"
|
||||||
|
AUTHENTIK_COLOR_BACKGROUND_LIGHT=#1c1e21
|
||||||
|
# Custommise the entire custom CSS file
|
||||||
|
#COMPOSE_FILE="$COMPOSE_FILE:compose.css.yml"
|
||||||
|
|
||||||
# COMPOSE_FILE="$COMPOSE_FILE:compose.nextcloud.yml"
|
# COMPOSE_FILE="$COMPOSE_FILE:compose.nextcloud.yml"
|
||||||
# NEXTCLOUD_DOMAIN=nextcloud.example.com
|
# NEXTCLOUD_DOMAIN=nextcloud.example.com
|
||||||
# SECRET_NEXTCLOUD_ID_VERSION=v1
|
# SECRET_NEXTCLOUD_ID_VERSION=v1
|
||||||
@ -96,6 +101,12 @@ COPY_ASSETS="$COPY_ASSETS icon.png|app:/web/dist/assets/icons/"
|
|||||||
# SECRET_RALLLY_SECRET_VERSION=v1
|
# SECRET_RALLLY_SECRET_VERSION=v1
|
||||||
# APP_ICONS="$APP_ICONS rallly:~/.abra/recipes/authentik/icons/rallly.png"
|
# APP_ICONS="$APP_ICONS rallly:~/.abra/recipes/authentik/icons/rallly.png"
|
||||||
|
|
||||||
|
# COMPOSE_FILE="$COMPOSE_FILE:compose.hedgedoc.yml"
|
||||||
|
# HEDGEDOC_DOMAIN=hedgedoc.example.com
|
||||||
|
# SECRET_HEDGEDOC_ID_VERSION=v1
|
||||||
|
# SECRET_HEDGEDOC_SECRET_VERSION=v1
|
||||||
|
# APP_ICONS="$APP_ICONS hedgedoc:~/.abra/recipes/authentik/icons/hedgedoc.png"
|
||||||
|
|
||||||
# APPLICATIONS='{"Calendar": "https://nextcloud.example.com/apps/calendar/", "BBB": "https://nextcloud.example.com/apps/bbb/"}'
|
# APPLICATIONS='{"Calendar": "https://nextcloud.example.com/apps/calendar/", "BBB": "https://nextcloud.example.com/apps/bbb/"}'
|
||||||
# APP_ICONS="$APP_ICONS Calendar:~/.abra/recipes/authentik/icons/calendar.svg"
|
# APP_ICONS="$APP_ICONS Calendar:~/.abra/recipes/authentik/icons/calendar.svg"
|
||||||
# APP_ICONS="$APP_ICONS BBB:~/.abra/recipes/authentik/icons/bbb.jpg"
|
# APP_ICONS="$APP_ICONS BBB:~/.abra/recipes/authentik/icons/bbb.jpg"
|
||||||
|
@ -167,8 +167,8 @@ The `abra.sh` function `apply_blueprints` needs to be executed to deactivate the
|
|||||||
- Default - Source enrollment flow
|
- Default - Source enrollment flow
|
||||||
- OVERWRITE:
|
- OVERWRITE:
|
||||||
- `default-source-enrollment-field-username`
|
- `default-source-enrollment-field-username`
|
||||||
- Custom System Tenant
|
- Custom System Brand
|
||||||
- Default - Tenant
|
- Default - Brand
|
||||||
- APPEND: `authentik_brands.brand domain: authentik-default`
|
- APPEND: `authentik_brands.brand domain: authentik-default`
|
||||||
- Recovery with email verification
|
- Recovery with email verification
|
||||||
- USE:
|
- USE:
|
||||||
@ -177,8 +177,8 @@ The `abra.sh` function `apply_blueprints` needs to be executed to deactivate the
|
|||||||
|
|
||||||
### Blueprint Dependency Execution Order
|
### Blueprint Dependency Execution Order
|
||||||
|
|
||||||
5. Custom System Tenant
|
5. Custom System Brand
|
||||||
- Default - Tenant
|
- Default - Brand
|
||||||
1. Recovery with email verification
|
1. Recovery with email verification
|
||||||
- Default - Authentication flow
|
- Default - Authentication flow
|
||||||
- Default - Password change flow
|
- Default - Password change flow
|
||||||
|
13
abra.sh
13
abra.sh
@ -1,17 +1,18 @@
|
|||||||
export CUSTOM_CSS_VERSION=v2
|
export CUSTOM_CSS_VERSION=v2
|
||||||
export FLOW_AUTHENTICATION_VERSION=v3
|
export FLOW_AUTHENTICATION_VERSION=v4
|
||||||
export FLOW_INVITATION_VERSION=v2
|
export FLOW_INVITATION_VERSION=v2
|
||||||
export FLOW_INVALIDATION_VERSION=v2
|
export FLOW_INVALIDATION_VERSION=v2
|
||||||
export FLOW_RECOVERY_VERSION=v1
|
export FLOW_RECOVERY_VERSION=v1
|
||||||
export FLOW_TRANSLATION_VERSION=v2
|
export FLOW_TRANSLATION_VERSION=v3
|
||||||
export SYSTEM_TENANT_VERSION=v2
|
export SYSTEM_BRAND_VERSION=v3
|
||||||
export NEXTCLOUD_CONFIG_VERSION=v1
|
export NEXTCLOUD_CONFIG_VERSION=v1
|
||||||
export WORDPRESS_CONFIG_VERSION=v2
|
export WORDPRESS_CONFIG_VERSION=v2
|
||||||
export MATRIX_CONFIG_VERSION=v1
|
export MATRIX_CONFIG_VERSION=v1
|
||||||
export WEKAN_CONFIG_VERSION=v3
|
export WEKAN_CONFIG_VERSION=v3
|
||||||
export VIKUNJA_CONFIG_VERSION=v1
|
export VIKUNJA_CONFIG_VERSION=v1
|
||||||
export OUTLINE_CONFIG_VERSION=v1
|
export OUTLINE_CONFIG_VERSION=v2
|
||||||
export RALLLY_CONFIG_VERSION=v1
|
export RALLLY_CONFIG_VERSION=v2
|
||||||
|
export HEDGEDOC_CONFIG_VERSION=v1
|
||||||
export MONITORING_CONFIG_VERSION=v1
|
export MONITORING_CONFIG_VERSION=v1
|
||||||
export DB_ENTRYPOINT_VERSION=v1
|
export DB_ENTRYPOINT_VERSION=v1
|
||||||
|
|
||||||
@ -217,7 +218,7 @@ delete_flows = ['default-recovery-flow' , 'custom-authentication-flow' , 'invita
|
|||||||
Flow.objects.filter(slug__in=delete_flows).delete()
|
Flow.objects.filter(slug__in=delete_flows).delete()
|
||||||
Stage.objects.filter(flow=None).delete()
|
Stage.objects.filter(flow=None).delete()
|
||||||
Prompt.objects.filter(promptstage=None).delete()
|
Prompt.objects.filter(promptstage=None).delete()
|
||||||
Tenant.objects.filter(default=True).delete()
|
Brand.objects.filter(default=True).delete()
|
||||||
""" 2>&1 | quieten
|
""" 2>&1 | quieten
|
||||||
apply_blueprints
|
apply_blueprints
|
||||||
}
|
}
|
||||||
|
14
compose.css.yml
Normal file
14
compose.css.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
configs:
|
||||||
|
- source: custom_css
|
||||||
|
target: /web/dist/custom.css
|
||||||
|
|
||||||
|
configs:
|
||||||
|
custom_css:
|
||||||
|
name: ${STACK_NAME}_custom_css_${CUSTOM_CSS_VERSION}
|
||||||
|
file: custom.css.tmpl
|
||||||
|
template_driver: golang
|
26
compose.hedgedoc.yml
Normal file
26
compose.hedgedoc.yml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
version: "3.8"
|
||||||
|
services:
|
||||||
|
worker:
|
||||||
|
secrets:
|
||||||
|
- hedgedoc_id
|
||||||
|
- hedgedoc_secret
|
||||||
|
environment:
|
||||||
|
- HEDGEDOC_DOMAIN
|
||||||
|
configs:
|
||||||
|
- source: hedgedoc
|
||||||
|
target: /blueprints/hedgedoc.yaml
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
hedgedoc_id:
|
||||||
|
external: true
|
||||||
|
name: ${STACK_NAME}_hedgedoc_id_${SECRET_HEDGEDOC_ID_VERSION}
|
||||||
|
hedgedoc_secret:
|
||||||
|
external: true
|
||||||
|
name: ${STACK_NAME}_hedgedoc_secret_${SECRET_HEDGEDOC_SECRET_VERSION}
|
||||||
|
|
||||||
|
|
||||||
|
configs:
|
||||||
|
hedgedoc:
|
||||||
|
name: ${STACK_NAME}_hedgedoc_${HEDGEDOC_CONFIG_VERSION}
|
||||||
|
file: hedgedoc.yaml.tmpl
|
||||||
|
template_driver: golang
|
23
compose.yml
23
compose.yml
@ -32,7 +32,7 @@ x-env: &env
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: ghcr.io/goauthentik/server:2024.2.2
|
image: ghcr.io/goauthentik/server:2024.4.0
|
||||||
command: server
|
command: server
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
@ -47,9 +47,6 @@ services:
|
|||||||
- media:/media
|
- media:/media
|
||||||
- assets:/web/dist/assets
|
- assets:/web/dist/assets
|
||||||
- templates:/templates
|
- templates:/templates
|
||||||
configs:
|
|
||||||
- source: custom_css
|
|
||||||
target: /web/dist/custom.css
|
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
- proxy
|
- proxy
|
||||||
@ -76,11 +73,11 @@ services:
|
|||||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
||||||
- "traefik.http.middlewares.${STACK_NAME}-frameOptions.headers.customFrameOptionsValue=SAMEORIGIN"
|
- "traefik.http.middlewares.${STACK_NAME}-frameOptions.headers.customFrameOptionsValue=SAMEORIGIN"
|
||||||
- "traefik.http.middlewares.${STACK_NAME}-frameOptions.headers.contentSecurityPolicy=frame-ancestors ${X_FRAME_OPTIONS_ALLOW_FROM}"
|
- "traefik.http.middlewares.${STACK_NAME}-frameOptions.headers.contentSecurityPolicy=frame-ancestors ${X_FRAME_OPTIONS_ALLOW_FROM}"
|
||||||
- "coop-cloud.${STACK_NAME}.version=5.0.1+2024.2.2"
|
- "coop-cloud.${STACK_NAME}.version=5.2.1+2024.4.0"
|
||||||
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
|
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
|
||||||
|
|
||||||
worker:
|
worker:
|
||||||
image: ghcr.io/goauthentik/server:2024.2.2
|
image: ghcr.io/goauthentik/server:2024.4.0
|
||||||
command: worker
|
command: worker
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
@ -108,8 +105,8 @@ services:
|
|||||||
target: /blueprints/3_flow_translation.yaml
|
target: /blueprints/3_flow_translation.yaml
|
||||||
- source: flow_invitation
|
- source: flow_invitation
|
||||||
target: /blueprints/4_flow_invitation.yaml
|
target: /blueprints/4_flow_invitation.yaml
|
||||||
- source: system_tenant
|
- source: system_brand
|
||||||
target: /blueprints/5_system_tenant.yaml
|
target: /blueprints/5_system_brand.yaml
|
||||||
- source: flow_invalidation
|
- source: flow_invalidation
|
||||||
target: /blueprints/6_flow_invalidation.yaml
|
target: /blueprints/6_flow_invalidation.yaml
|
||||||
environment: *env
|
environment: *env
|
||||||
@ -186,10 +183,6 @@ volumes:
|
|||||||
database:
|
database:
|
||||||
|
|
||||||
configs:
|
configs:
|
||||||
custom_css:
|
|
||||||
name: ${STACK_NAME}_custom_css_${CUSTOM_CSS_VERSION}
|
|
||||||
file: custom.css.tmpl
|
|
||||||
template_driver: golang
|
|
||||||
flow_authentication:
|
flow_authentication:
|
||||||
name: ${STACK_NAME}_flow_authentication_${FLOW_AUTHENTICATION_VERSION}
|
name: ${STACK_NAME}_flow_authentication_${FLOW_AUTHENTICATION_VERSION}
|
||||||
file: flow_authentication.yaml.tmpl
|
file: flow_authentication.yaml.tmpl
|
||||||
@ -210,9 +203,9 @@ configs:
|
|||||||
name: ${STACK_NAME}_flow_translation_${FLOW_TRANSLATION_VERSION}
|
name: ${STACK_NAME}_flow_translation_${FLOW_TRANSLATION_VERSION}
|
||||||
file: flow_translation.yaml.tmpl
|
file: flow_translation.yaml.tmpl
|
||||||
template_driver: golang
|
template_driver: golang
|
||||||
system_tenant:
|
system_brand:
|
||||||
name: ${STACK_NAME}_system_tenant_${SYSTEM_TENANT_VERSION}
|
name: ${STACK_NAME}_system_brand_${SYSTEM_BRAND_VERSION}
|
||||||
file: system_tenant.yaml.tmpl
|
file: system_brand.yaml.tmpl
|
||||||
template_driver: golang
|
template_driver: golang
|
||||||
db_entrypoint:
|
db_entrypoint:
|
||||||
name: ${STACK_NAME}_db_entrypoint_${DB_ENTRYPOINT_VERSION}
|
name: ${STACK_NAME}_db_entrypoint_${DB_ENTRYPOINT_VERSION}
|
||||||
|
@ -384,7 +384,7 @@ entries:
|
|||||||
enabled: {{ if eq (env "LOGOUT_REDIRECT") "" }} false {{ else }} true {{ end }}
|
enabled: {{ if eq (env "LOGOUT_REDIRECT") "" }} false {{ else }} true {{ end }}
|
||||||
timeout: 30
|
timeout: 30
|
||||||
|
|
||||||
######## System Tenant ##########
|
######## System Brand ##########
|
||||||
- attrs:
|
- attrs:
|
||||||
attributes:
|
attributes:
|
||||||
settings:
|
settings:
|
||||||
@ -401,5 +401,5 @@ entries:
|
|||||||
flow_user_settings: !Find [authentik_flows.flow, [slug, default-user-settings-flow]]
|
flow_user_settings: !Find [authentik_flows.flow, [slug, default-user-settings-flow]]
|
||||||
identifiers:
|
identifiers:
|
||||||
pk: 047cce25-aae2-4b02-9f96-078e155f803d
|
pk: 047cce25-aae2-4b02-9f96-078e155f803d
|
||||||
id: system_tenant
|
id: system_brand
|
||||||
model: authentik_brands.brand
|
model: authentik_brands.brand
|
||||||
|
@ -37,7 +37,7 @@ entries:
|
|||||||
name: default-authentication-login
|
name: default-authentication-login
|
||||||
model: authentik_stages_user_login.userloginstage
|
model: authentik_stages_user_login.userloginstage
|
||||||
attrs:
|
attrs:
|
||||||
session_duration: seconds=0
|
session_duration: days=30
|
||||||
|
|
||||||
# After the first run this will produce a RelatedObjectDoesNotExist error
|
# After the first run this will produce a RelatedObjectDoesNotExist error
|
||||||
- identifiers:
|
- identifiers:
|
||||||
|
43
hedgedoc.yaml.tmpl
Normal file
43
hedgedoc.yaml.tmpl
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
version: 1
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
blueprints.goauthentik.io/instantiate: "true"
|
||||||
|
name: hedgedoc
|
||||||
|
|
||||||
|
entries:
|
||||||
|
|
||||||
|
- attrs:
|
||||||
|
access_code_validity: minutes=1
|
||||||
|
authorization_flow: !Find [authentik_flows.flow, [slug, default-provider-authorization-implicit-consent]]
|
||||||
|
client_id: {{ secret "hedgedoc_id" }}
|
||||||
|
client_secret: {{ secret "hedgedoc_secret" }}
|
||||||
|
client_type: confidential
|
||||||
|
include_claims_in_id_token: true
|
||||||
|
issuer_mode: per_provider
|
||||||
|
name: Hedgedoc
|
||||||
|
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]]
|
||||||
|
signing_key: !Find [authentik_crypto.certificatekeypair, [name, authentik Self-signed Certificate]]
|
||||||
|
sub_mode: hashed_user_id
|
||||||
|
token_validity: days=30
|
||||||
|
conditions: []
|
||||||
|
id: hedgedoc_provider
|
||||||
|
identifiers:
|
||||||
|
pk: 9992
|
||||||
|
model: authentik_providers_oauth2.oauth2provider
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- attrs:
|
||||||
|
meta_launch_url: https://{{ env "HEDGEDOC_DOMAIN" }}
|
||||||
|
open_in_new_tab: true
|
||||||
|
policy_engine_mode: any
|
||||||
|
provider: !KeyOf hedgedoc_provider
|
||||||
|
slug: hedgedoc
|
||||||
|
conditions: []
|
||||||
|
id: hedgedoc_application
|
||||||
|
identifiers:
|
||||||
|
name: Hedgedoc
|
||||||
|
model: authentik_core.application
|
||||||
|
state: present
|
BIN
icons/hedgedoc.png
Normal file
BIN
icons/hedgedoc.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.2 KiB |
@ -25,7 +25,7 @@ entries:
|
|||||||
conditions: []
|
conditions: []
|
||||||
id: outline_provider
|
id: outline_provider
|
||||||
identifiers:
|
identifiers:
|
||||||
pk: 9995
|
pk: 9994
|
||||||
model: authentik_providers_oauth2.oauth2provider
|
model: authentik_providers_oauth2.oauth2provider
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ entries:
|
|||||||
conditions: []
|
conditions: []
|
||||||
id: rallly_provider
|
id: rallly_provider
|
||||||
identifiers:
|
identifiers:
|
||||||
pk: 9995
|
pk: 9993
|
||||||
model: authentik_providers_oauth2.oauth2provider
|
model: authentik_providers_oauth2.oauth2provider
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
1
release/5.1.0+2024.2.3
Normal file
1
release/5.1.0+2024.2.3
Normal file
@ -0,0 +1 @@
|
|||||||
|
Due to blueprint changes, you need to run the following command after upgrading: abra app cmd -C <Domain> worker apply_blueprints
|
@ -2,13 +2,13 @@ version: 1
|
|||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
blueprints.goauthentik.io/instantiate: "true"
|
blueprints.goauthentik.io/instantiate: "true"
|
||||||
name: Custom System Tenant
|
name: Custom System brand
|
||||||
entries:
|
entries:
|
||||||
### DEPENDENCIES
|
### DEPENDENCIES
|
||||||
- model: authentik_blueprints.metaapplyblueprint
|
- model: authentik_blueprints.metaapplyblueprint
|
||||||
attrs:
|
attrs:
|
||||||
identifiers:
|
identifiers:
|
||||||
name: Default - Tenant
|
name: Default - Brand
|
||||||
required: true
|
required: true
|
||||||
- model: authentik_blueprints.metaapplyblueprint
|
- model: authentik_blueprints.metaapplyblueprint
|
||||||
attrs:
|
attrs:
|
||||||
@ -17,8 +17,8 @@ entries:
|
|||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
|
||||||
### SYSTEM TENANT
|
### SYSTEM BRAND
|
||||||
# remove custom tenant from old recipe
|
# remove custom brand from old recipe
|
||||||
- identifiers:
|
- identifiers:
|
||||||
domain: {{ env "DOMAIN" }}
|
domain: {{ env "DOMAIN" }}
|
||||||
model: authentik_brands.brand
|
model: authentik_brands.brand
|
Reference in New Issue
Block a user