forked from coop-cloud/authentik
Compare commits
8 Commits
1.1.1+2022
...
1.3.0+2022
Author | SHA1 | Date | |
---|---|---|---|
26d02d51dd | |||
4bab09a1cf | |||
b7df357395 | |||
9273fbcb1a | |||
a01559d61a | |||
40afba88ae | |||
3512cbe394 | |||
1dc2ba18d4 |
@ -28,8 +28,13 @@ 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
|
AUTHENTIK_COLOR_BACKGROUND_LIGHT=#1c1e21
|
||||||
|
AUTHENTIK_IMPERSONATION=true
|
||||||
|
|
||||||
## FLOW OPTIONS
|
## FLOW OPTIONS
|
||||||
WELCOME_MESSAGE="Welcome to Authentik"
|
WELCOME_MESSAGE="Welcome to Authentik"
|
||||||
DEFAULT_LANGUAGE=en
|
DEFAULT_LANGUAGE=en
|
||||||
AUTHENTIK_FOOTER_LINKS='[{"name": "My Organization","href":"https://example.com"}]'
|
AUTHENTIK_FOOTER_LINKS='[{"name": "My Organization","href":"https://example.com"}]'
|
||||||
|
COPY_ASSETS="flow_background.jpg|app:/web/dist/assets/images/ icon_left_brand.svg|app:/web/dist/assets/icons/ icon.png|app:/web/dist/assets/icons/"
|
||||||
|
|
||||||
|
EMAIL_SUBJECT="Account Recovery"
|
||||||
|
EMAIL_TOKEN_EXPIRY_MINUTES=30
|
||||||
|
27
README.md
27
README.md
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
* **Category**: Apps
|
* **Category**: Apps
|
||||||
* **Status**: 0, work-in-progress
|
* **Status**: 0, work-in-progress
|
||||||
* **Image**: [ghcr/goauthentik/server](https://ghcr.io/goauthentik/server)
|
* **Image**: [ghcr/goauthentik/server](https://ghcr.io/goauthentik/server), 4, upstream
|
||||||
* **Healthcheck**: Yes
|
* **Healthcheck**: Yes
|
||||||
* **Backups**: Yes
|
* **Backups**: Yes
|
||||||
* **Email**: Yes
|
* **Email**: Yes
|
||||||
@ -20,15 +20,17 @@
|
|||||||
|
|
||||||
## Quick start
|
## Quick start
|
||||||
|
|
||||||
* `abra app new authentik --secrets`
|
* `abra app new authentik`
|
||||||
* `abra app config <app-name>`
|
* `abra app config <app-name>`
|
||||||
* `abra app secret insert <app_name> email_pass v1 <password>`
|
* `abra app secret insert <app_name> email_pass v1 <password>`
|
||||||
* `abra app secret generate -a <app_name>
|
* `abra app secret generate -a <app_name>`
|
||||||
* `abra app deploy <app-name>`
|
* `abra app deploy <app-name>`
|
||||||
* `abra app cmd <app_name> app set_admin_pass`
|
* `abra app cmd <app_name> app set_admin_pass`
|
||||||
|
|
||||||
## Rotate Secrets
|
## Rotate Secrets
|
||||||
|
|
||||||
|
Increment the secret versions using `abra app config <app_name>`
|
||||||
|
|
||||||
```
|
```
|
||||||
abra app secret generate -a <app_name>
|
abra app secret generate -a <app_name>
|
||||||
abra app undeploy <app_name>
|
abra app undeploy <app_name>
|
||||||
@ -39,14 +41,21 @@ abra app cmd <app_name> app set_admin_pass
|
|||||||
|
|
||||||
## Customization
|
## Customization
|
||||||
|
|
||||||
|
Place the files you want to overwrite in a directory `<assets_path>`.
|
||||||
|
Run `abra app config <app_name>` and define the env variable `COPY_ASSETS` in the following format:
|
||||||
|
|
||||||
|
```
|
||||||
|
"<source_file1>|<service>:<target_directory1> <source_file2>|<service>:<target_directory2> ...
|
||||||
|
```
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
```
|
||||||
|
COPY_ASSETS="flow_background.jpg|app:/web/dist/assets/images/ icon_left_brand.svg|app:/web/dist/assets/icons/ icon.png|app:/web/dist/assets/icons/"
|
||||||
|
```
|
||||||
|
|
||||||
Run this command after every deploy/upgrade:
|
Run this command after every deploy/upgrade:
|
||||||
|
|
||||||
`abra app command --local <app-name> customize <assets_path>`
|
`abra app command --local <app-name> customize <assets_path>`
|
||||||
|
|
||||||
This command replaces the background image, the logo and the favicon with the following files placed in the `<assets_path>` directory:
|
|
||||||
* `flow_background.jpg`
|
|
||||||
* `icon_left_brand.svg`
|
|
||||||
* `icon.png`
|
|
||||||
|
|
||||||
|
|
||||||
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).
|
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).
|
||||||
|
27
abra.sh
27
abra.sh
@ -1,5 +1,5 @@
|
|||||||
export CUSTOM_CSS_VERSION=v2
|
export CUSTOM_CSS_VERSION=v2
|
||||||
export CUSTOM_FLOWS_VERSION=v2
|
export CUSTOM_FLOWS_VERSION=v3
|
||||||
|
|
||||||
customize() {
|
customize() {
|
||||||
if [ -z "$1" ]
|
if [ -z "$1" ]
|
||||||
@ -7,22 +7,13 @@ customize() {
|
|||||||
echo "Usage: ... customize <assets_path>"
|
echo "Usage: ... customize <assets_path>"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# TODO: use env to specify source and target files
|
asset_dir=$1
|
||||||
if [ -e $1/flow_background.jpg ]
|
for asset in $COPY_ASSETS; do
|
||||||
then
|
source=$(echo $asset | cut -d "|" -f1)
|
||||||
echo copy flow_background.jpg
|
target=$(echo $asset | cut -d "|" -f2)
|
||||||
abra app cp $APP_NAME $1/flow_background.jpg app:/web/dist/assets/images/
|
echo copy $source to $target
|
||||||
fi
|
abra app cp $APP_NAME $asset_dir/$source $target
|
||||||
if [ -e $1/icon_left_brand.svg ]
|
done
|
||||||
then
|
|
||||||
echo copy icon_left_brand.svg
|
|
||||||
abra app cp $APP_NAME $1/icon_left_brand.svg app:/web/dist/assets/icons/
|
|
||||||
fi
|
|
||||||
if [ -e $1/icon.png ]
|
|
||||||
then
|
|
||||||
echo copy icon.png
|
|
||||||
abra app cp $APP_NAME $1/icon.png app:/web/dist/assets/icons/
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
set_admin_pass() {
|
set_admin_pass() {
|
||||||
@ -40,7 +31,7 @@ if (token:= Token.objects.filter(identifier='authentik-bootstrap-token').first()
|
|||||||
token.key=key
|
token.key=key
|
||||||
token.save()
|
token.save()
|
||||||
print('Changed authentik-bootstrap-token')
|
print('Changed authentik-bootstrap-token')
|
||||||
else:
|
else:
|
||||||
Token.objects.create(
|
Token.objects.create(
|
||||||
identifier='authentik-bootstrap-token',
|
identifier='authentik-bootstrap-token',
|
||||||
user=akadmin,
|
user=akadmin,
|
||||||
|
@ -20,14 +20,17 @@ x-env: &env
|
|||||||
- AUTHENTIK_SETTINGS__THEME__BACKGROUND
|
- AUTHENTIK_SETTINGS__THEME__BACKGROUND
|
||||||
- AUTHENTIK_COLOR_BACKGROUND_LIGHT
|
- AUTHENTIK_COLOR_BACKGROUND_LIGHT
|
||||||
- AUTHENTIK_FOOTER_LINKS
|
- AUTHENTIK_FOOTER_LINKS
|
||||||
|
- AUTHENTIK_IMPERSONATION
|
||||||
- WELCOME_MESSAGE
|
- WELCOME_MESSAGE
|
||||||
- DEFAULT_LANGUAGE
|
- DEFAULT_LANGUAGE
|
||||||
|
- EMAIL_SUBJECT
|
||||||
|
- EMAIL_TOKEN_EXPIRY_MINUTES
|
||||||
- DOMAIN
|
- DOMAIN
|
||||||
|
|
||||||
version: '3.8'
|
version: '3.8'
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: ghcr.io/goauthentik/server:2022.11.1
|
image: ghcr.io/goauthentik/server:2022.12.2
|
||||||
command: server
|
command: server
|
||||||
secrets:
|
secrets:
|
||||||
- db_password
|
- db_password
|
||||||
@ -67,10 +70,10 @@ 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=1.1.1+2022.11.1"
|
- "coop-cloud.${STACK_NAME}.version=1.3.0+2022.12.2"
|
||||||
|
|
||||||
worker:
|
worker:
|
||||||
image: ghcr.io/goauthentik/server:2022.11.1
|
image: ghcr.io/goauthentik/server:2022.12.2
|
||||||
command: worker
|
command: worker
|
||||||
secrets:
|
secrets:
|
||||||
- db_password
|
- db_password
|
||||||
|
@ -12,7 +12,7 @@ context:
|
|||||||
transl_name: {{ if eq (env "DEFAULT_LANGUAGE") "de" }} Vor- und Nachname {{ else }} Full name {{ end }}
|
transl_name: {{ if eq (env "DEFAULT_LANGUAGE") "de" }} Vor- und Nachname {{ else }} Full name {{ end }}
|
||||||
|
|
||||||
entries:
|
entries:
|
||||||
######## Email Recovery Flow ########
|
######## Email Recovery Flow ########
|
||||||
- identifiers:
|
- identifiers:
|
||||||
slug: default-recovery-flow
|
slug: default-recovery-flow
|
||||||
id: recovery_flow
|
id: recovery_flow
|
||||||
@ -54,8 +54,8 @@ entries:
|
|||||||
model: authentik_stages_email.emailstage
|
model: authentik_stages_email.emailstage
|
||||||
attrs:
|
attrs:
|
||||||
use_global_settings: true
|
use_global_settings: true
|
||||||
token_expiry: 30
|
token_expiry: {{ env "EMAIL_TOKEN_EXPIRY_MINUTES" }}
|
||||||
subject: authentik
|
subject: "{{ env "EMAIL_SUBJECT" }}"
|
||||||
template: email/password_reset.html
|
template: email/password_reset.html
|
||||||
activate_user_on_success: true
|
activate_user_on_success: true
|
||||||
- identifiers:
|
- identifiers:
|
||||||
@ -174,7 +174,7 @@ entries:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
######## Authentication Flow ########
|
######## Authentication Flow ########
|
||||||
- attrs:
|
- attrs:
|
||||||
designation: authentication
|
designation: authentication
|
||||||
name: custom-authentication-flow
|
name: custom-authentication-flow
|
||||||
@ -236,7 +236,7 @@ entries:
|
|||||||
target: !KeyOf authentication_flow
|
target: !KeyOf authentication_flow
|
||||||
model: authentik_flows.flowstagebinding
|
model: authentik_flows.flowstagebinding
|
||||||
|
|
||||||
######## Invitation Enrollment Flow ########
|
######## Invitation Enrollment Flow ########
|
||||||
- attrs:
|
- attrs:
|
||||||
designation: enrollment
|
designation: enrollment
|
||||||
name: invitation-enrollment-flow
|
name: invitation-enrollment-flow
|
||||||
@ -336,7 +336,7 @@ entries:
|
|||||||
|
|
||||||
######## System Tenant ##########
|
######## System Tenant ##########
|
||||||
- attrs:
|
- attrs:
|
||||||
attributes:
|
attributes:
|
||||||
settings:
|
settings:
|
||||||
locale: {{ env "DEFAULT_LANGUAGE" }}
|
locale: {{ env "DEFAULT_LANGUAGE" }}
|
||||||
# branding_favicon: /static/dist/assets/icons/icon.png
|
# branding_favicon: /static/dist/assets/icons/icon.png
|
||||||
|
Reference in New Issue
Block a user