Merge branch 'master' into stage-challenge

This commit is contained in:
Jens Langhammer 2021-02-23 23:17:03 +01:00
commit 55af786852
20 changed files with 47 additions and 33 deletions

View File

@ -1,5 +1,5 @@
[bumpversion] [bumpversion]
current_version = 2021.2.3-stable current_version = 2021.2.4-stable
tag = True tag = True
commit = True commit = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)\-(?P<release>.*) parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)\-(?P<release>.*)

View File

@ -18,11 +18,11 @@ jobs:
- name: Building Docker Image - name: Building Docker Image
run: docker build run: docker build
--no-cache --no-cache
-t beryju/authentik:2021.2.3-stable -t beryju/authentik:2021.2.4-stable
-t beryju/authentik:latest -t beryju/authentik:latest
-f Dockerfile . -f Dockerfile .
- name: Push Docker Container to Registry (versioned) - name: Push Docker Container to Registry (versioned)
run: docker push beryju/authentik:2021.2.3-stable run: docker push beryju/authentik:2021.2.4-stable
- name: Push Docker Container to Registry (latest) - name: Push Docker Container to Registry (latest)
run: docker push beryju/authentik:latest run: docker push beryju/authentik:latest
build-proxy: build-proxy:
@ -48,11 +48,11 @@ jobs:
cd outpost/ cd outpost/
docker build \ docker build \
--no-cache \ --no-cache \
-t beryju/authentik-proxy:2021.2.3-stable \ -t beryju/authentik-proxy:2021.2.4-stable \
-t beryju/authentik-proxy:latest \ -t beryju/authentik-proxy:latest \
-f proxy.Dockerfile . -f proxy.Dockerfile .
- name: Push Docker Container to Registry (versioned) - name: Push Docker Container to Registry (versioned)
run: docker push beryju/authentik-proxy:2021.2.3-stable run: docker push beryju/authentik-proxy:2021.2.4-stable
- name: Push Docker Container to Registry (latest) - name: Push Docker Container to Registry (latest)
run: docker push beryju/authentik-proxy:latest run: docker push beryju/authentik-proxy:latest
build-static: build-static:
@ -69,11 +69,11 @@ jobs:
cd web/ cd web/
docker build \ docker build \
--no-cache \ --no-cache \
-t beryju/authentik-static:2021.2.3-stable \ -t beryju/authentik-static:2021.2.4-stable \
-t beryju/authentik-static:latest \ -t beryju/authentik-static:latest \
-f Dockerfile . -f Dockerfile .
- name: Push Docker Container to Registry (versioned) - name: Push Docker Container to Registry (versioned)
run: docker push beryju/authentik-static:2021.2.3-stable run: docker push beryju/authentik-static:2021.2.4-stable
- name: Push Docker Container to Registry (latest) - name: Push Docker Container to Registry (latest)
run: docker push beryju/authentik-static:latest run: docker push beryju/authentik-static:latest
test-release: test-release:
@ -107,5 +107,5 @@ jobs:
SENTRY_PROJECT: authentik SENTRY_PROJECT: authentik
SENTRY_URL: https://sentry.beryju.org SENTRY_URL: https://sentry.beryju.org
with: with:
tagName: 2021.2.3-stable tagName: 2021.2.4-stable
environment: beryjuorg-prod environment: beryjuorg-prod

View File

@ -1,2 +1,2 @@
"""authentik""" """authentik"""
__version__ = "2021.2.3-stable" __version__ = "2021.2.4-stable"

View File

@ -29,6 +29,7 @@ class ApplicationCreateView(
form_class = ApplicationForm form_class = ApplicationForm
permission_required = "authentik_core.add_application" permission_required = "authentik_core.add_application"
success_url = "/"
template_name = "generic/create.html" template_name = "generic/create.html"
success_message = _("Successfully created Application") success_message = _("Successfully created Application")
@ -61,6 +62,7 @@ class ApplicationUpdateView(
form_class = ApplicationForm form_class = ApplicationForm
permission_required = "authentik_core.change_application" permission_required = "authentik_core.change_application"
success_url = "/"
template_name = "generic/update.html" template_name = "generic/update.html"
success_message = _("Successfully updated Application") success_message = _("Successfully updated Application")
@ -73,5 +75,6 @@ class ApplicationDeleteView(
model = Application model = Application
permission_required = "authentik_core.delete_application" permission_required = "authentik_core.delete_application"
success_url = "/"
template_name = "generic/delete.html" template_name = "generic/delete.html"
success_message = _("Successfully deleted Application") success_message = _("Successfully deleted Application")

View File

@ -26,6 +26,7 @@ class NotificationRuleCreateView(
form_class = NotificationRuleForm form_class = NotificationRuleForm
permission_required = "authentik_events.add_NotificationRule" permission_required = "authentik_events.add_NotificationRule"
success_url = "/"
template_name = "generic/create.html" template_name = "generic/create.html"
success_message = _("Successfully created Notification Rule") success_message = _("Successfully created Notification Rule")
@ -42,6 +43,7 @@ class NotificationRuleUpdateView(
form_class = NotificationRuleForm form_class = NotificationRuleForm
permission_required = "authentik_events.change_NotificationRule" permission_required = "authentik_events.change_NotificationRule"
success_url = "/"
template_name = "generic/update.html" template_name = "generic/update.html"
success_message = _("Successfully updated Notification Rule") success_message = _("Successfully updated Notification Rule")
@ -54,5 +56,6 @@ class NotificationRuleDeleteView(
model = NotificationRule model = NotificationRule
permission_required = "authentik_events.delete_NotificationRule" permission_required = "authentik_events.delete_NotificationRule"
success_url = "/"
template_name = "generic/delete.html" template_name = "generic/delete.html"
success_message = _("Successfully deleted Notification Rule") success_message = _("Successfully deleted Notification Rule")

View File

@ -25,7 +25,7 @@ class NotificationTransportCreateView(
model = NotificationTransport model = NotificationTransport
form_class = NotificationTransportForm form_class = NotificationTransportForm
permission_required = "authentik_events.add_notificationtransport" permission_required = "authentik_events.add_notificationtransport"
success_url = "/"
template_name = "generic/create.html" template_name = "generic/create.html"
success_message = _("Successfully created Notification Transport") success_message = _("Successfully created Notification Transport")
@ -41,7 +41,7 @@ class NotificationTransportUpdateView(
model = NotificationTransport model = NotificationTransport
form_class = NotificationTransportForm form_class = NotificationTransportForm
permission_required = "authentik_events.change_notificationtransport" permission_required = "authentik_events.change_notificationtransport"
success_url = "/"
template_name = "generic/update.html" template_name = "generic/update.html"
success_message = _("Successfully updated Notification Transport") success_message = _("Successfully updated Notification Transport")
@ -53,6 +53,6 @@ class NotificationTransportDeleteView(
model = NotificationTransport model = NotificationTransport
permission_required = "authentik_events.delete_notificationtransport" permission_required = "authentik_events.delete_notificationtransport"
success_url = "/"
template_name = "generic/delete.html" template_name = "generic/delete.html"
success_message = _("Successfully deleted Notification Transport") success_message = _("Successfully deleted Notification Transport")

View File

@ -28,7 +28,7 @@ class OutpostCreateView(
model = Outpost model = Outpost
form_class = OutpostForm form_class = OutpostForm
permission_required = "authentik_outposts.add_outpost" permission_required = "authentik_outposts.add_outpost"
success_url = "/"
template_name = "generic/create.html" template_name = "generic/create.html"
success_message = _("Successfully created Outpost") success_message = _("Successfully created Outpost")
@ -51,7 +51,7 @@ class OutpostUpdateView(
model = Outpost model = Outpost
form_class = OutpostForm form_class = OutpostForm
permission_required = "authentik_outposts.change_outpost" permission_required = "authentik_outposts.change_outpost"
success_url = "/"
template_name = "generic/update.html" template_name = "generic/update.html"
success_message = _("Successfully updated Outpost") success_message = _("Successfully updated Outpost")
@ -61,6 +61,6 @@ class OutpostDeleteView(LoginRequiredMixin, PermissionRequiredMixin, DeleteMessa
model = Outpost model = Outpost
permission_required = "authentik_outposts.delete_outpost" permission_required = "authentik_outposts.delete_outpost"
success_url = "/"
template_name = "generic/delete.html" template_name = "generic/delete.html"
success_message = _("Successfully deleted Outpost") success_message = _("Successfully deleted Outpost")

View File

@ -32,7 +32,7 @@ class PropertyMappingCreateView(
model = PropertyMapping model = PropertyMapping
permission_required = "authentik_core.add_propertymapping" permission_required = "authentik_core.add_propertymapping"
success_url = "/"
template_name = "generic/create.html" template_name = "generic/create.html"
success_message = _("Successfully created Property Mapping") success_message = _("Successfully created Property Mapping")
@ -47,7 +47,7 @@ class PropertyMappingUpdateView(
model = PropertyMapping model = PropertyMapping
permission_required = "authentik_core.change_propertymapping" permission_required = "authentik_core.change_propertymapping"
success_url = "/"
template_name = "generic/update.html" template_name = "generic/update.html"
success_message = _("Successfully updated Property Mapping") success_message = _("Successfully updated Property Mapping")
@ -59,7 +59,7 @@ class PropertyMappingDeleteView(
model = PropertyMapping model = PropertyMapping
permission_required = "authentik_core.delete_propertymapping" permission_required = "authentik_core.delete_propertymapping"
success_url = "/"
template_name = "generic/delete.html" template_name = "generic/delete.html"
success_message = _("Successfully deleted Property Mapping") success_message = _("Successfully deleted Property Mapping")

View File

@ -25,7 +25,7 @@ class ProviderCreateView(
model = Provider model = Provider
permission_required = "authentik_core.add_provider" permission_required = "authentik_core.add_provider"
success_url = "/"
template_name = "generic/create.html" template_name = "generic/create.html"
success_message = _("Successfully created Provider") success_message = _("Successfully created Provider")
@ -40,7 +40,7 @@ class ProviderUpdateView(
model = Provider model = Provider
permission_required = "authentik_core.change_provider" permission_required = "authentik_core.change_provider"
success_url = "/"
template_name = "generic/update.html" template_name = "generic/update.html"
success_message = _("Successfully updated Provider") success_message = _("Successfully updated Provider")
@ -52,6 +52,6 @@ class ProviderDeleteView(
model = Provider model = Provider
permission_required = "authentik_core.delete_provider" permission_required = "authentik_core.delete_provider"
success_url = "/"
template_name = "generic/delete.html" template_name = "generic/delete.html"
success_message = _("Successfully deleted Provider") success_message = _("Successfully deleted Provider")

View File

@ -26,6 +26,7 @@ class SourceCreateView(
model = Source model = Source
permission_required = "authentik_core.add_source" permission_required = "authentik_core.add_source"
success_url = "/"
template_name = "generic/create.html" template_name = "generic/create.html"
success_message = _("Successfully created Source") success_message = _("Successfully created Source")
@ -41,6 +42,7 @@ class SourceUpdateView(
model = Source model = Source
permission_required = "authentik_core.change_source" permission_required = "authentik_core.change_source"
success_url = "/"
template_name = "generic/update.html" template_name = "generic/update.html"
success_message = _("Successfully updated Source") success_message = _("Successfully updated Source")
@ -51,5 +53,6 @@ class SourceDeleteView(LoginRequiredMixin, PermissionRequiredMixin, DeleteMessag
model = Source model = Source
permission_required = "authentik_core.delete_source" permission_required = "authentik_core.delete_source"
success_url = "/"
template_name = "generic/delete.html" template_name = "generic/delete.html"
success_message = _("Successfully deleted Source") success_message = _("Successfully deleted Source")

View File

@ -39,8 +39,8 @@
</section> </section>
{% endfor %} {% endfor %}
{% user_sources as user_sources_loc %} {% user_sources as user_sources_loc %}
{% for source, source_link in user_sources_loc.item %} {% for source, source_link in user_sources_loc.items %}
<section slot="page-{{ source.pk }}" data-tab-title="{{ source|verbose_name }}" class="pf-c-page__main-section pf-m-no-padding-mobile"> <section slot="page-{{ source.pk }}" data-tab-title="{{ source.name }}" class="pf-c-page__main-section pf-m-no-padding-mobile">
<div class="pf-u-display-flex pf-u-justify-content-center"> <div class="pf-u-display-flex pf-u-justify-content-center">
<div class="pf-u-w-75"> <div class="pf-u-w-75">
<ak-site-shell url="{{ source_link }}"> <ak-site-shell url="{{ source_link }}">

View File

@ -19,7 +19,7 @@ services:
networks: networks:
- internal - internal
server: server:
image: beryju/authentik:${AUTHENTIK_TAG:-2021.2.3-stable} image: beryju/authentik:${AUTHENTIK_TAG:-2021.2.4-stable}
command: server command: server
environment: environment:
AUTHENTIK_REDIS__HOST: redis AUTHENTIK_REDIS__HOST: redis
@ -45,7 +45,7 @@ services:
env_file: env_file:
- .env - .env
worker: worker:
image: beryju/authentik:${AUTHENTIK_TAG:-2021.2.3-stable} image: beryju/authentik:${AUTHENTIK_TAG:-2021.2.4-stable}
command: worker command: worker
networks: networks:
- internal - internal
@ -62,7 +62,7 @@ services:
env_file: env_file:
- .env - .env
static: static:
image: beryju/authentik-static:${AUTHENTIK_TAG:-2021.2.3-stable} image: beryju/authentik-static:${AUTHENTIK_TAG:-2021.2.4-stable}
networks: networks:
- internal - internal
labels: labels:

View File

@ -4,7 +4,7 @@ name: authentik
home: https://goauthentik.io home: https://goauthentik.io
sources: sources:
- https://github.com/BeryJu/authentik - https://github.com/BeryJu/authentik
version: "2021.2.3-stable" version: "2021.2.4-stable"
icon: https://raw.githubusercontent.com/BeryJu/authentik/master/web/icons/icon.svg icon: https://raw.githubusercontent.com/BeryJu/authentik/master/web/icons/icon.svg
dependencies: dependencies:
- name: postgresql - name: postgresql

View File

@ -4,7 +4,7 @@
|-----------------------------------|-------------------------|-------------| |-----------------------------------|-------------------------|-------------|
| image.name | beryju/authentik | Image used to run the authentik server and worker | | image.name | beryju/authentik | Image used to run the authentik server and worker |
| image.name_static | beryju/authentik-static | Image used to run the authentik static server (CSS and JS Files) | | image.name_static | beryju/authentik-static | Image used to run the authentik static server (CSS and JS Files) |
| image.tag | 2021.2.3-stable | Image tag | | image.tag | 2021.2.4-stable | Image tag |
| image.pullPolicy | IfNotPresent | Image Pull Policy used for all deployments | | image.pullPolicy | IfNotPresent | Image Pull Policy used for all deployments |
| serverReplicas | 1 | Replicas for the Server deployment | | serverReplicas | 1 | Replicas for the Server deployment |
| workerReplicas | 1 | Replicas for the Worker deployment | | workerReplicas | 1 | Replicas for the Worker deployment |

View File

@ -5,7 +5,7 @@ image:
name: beryju/authentik name: beryju/authentik
name_static: beryju/authentik-static name_static: beryju/authentik-static
name_outposts: beryju/authentik # Prefix used for Outpost deployments, Outpost type and version is appended name_outposts: beryju/authentik # Prefix used for Outpost deployments, Outpost type and version is appended
tag: 2021.2.3-stable tag: 2021.2.4-stable
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
serverReplicas: 1 serverReplicas: 1

View File

@ -1,3 +1,3 @@
package pkg package pkg
const VERSION = "2021.2.3-stable" const VERSION = "2021.2.4-stable"

View File

@ -28,4 +28,4 @@ export const ColorStyles = css`
background-color: var(--pf-global--danger-color--100); background-color: var(--pf-global--danger-color--100);
} }
`; `;
export const VERSION = "2021.2.3-stable"; export const VERSION = "2021.2.4-stable";

View File

@ -16,7 +16,7 @@ Download the latest `docker-compose.yml` from [here](https://raw.githubuserconte
To optionally enable error-reporting, run `echo AUTHENTIK_ERROR_REPORTING__ENABLED=true >> .env` To optionally enable error-reporting, run `echo AUTHENTIK_ERROR_REPORTING__ENABLED=true >> .env`
To optionally deploy a different version run `echo AUTHENTIK_TAG=2021.2.3-stable >> .env` To optionally deploy a different version run `echo AUTHENTIK_TAG=2021.2.4-stable >> .env`
If this is a fresh authentik install run the following commands to generate a password: If this is a fresh authentik install run the following commands to generate a password:

View File

@ -24,7 +24,7 @@ image:
name: beryju/authentik name: beryju/authentik
name_static: beryju/authentik-static name_static: beryju/authentik-static
name_outposts: beryju/authentik # Prefix used for Outpost deployments, Outpost type and version is appended name_outposts: beryju/authentik # Prefix used for Outpost deployments, Outpost type and version is appended
tag: 2021.2.3-stable tag: 2021.2.4-stable
serverReplicas: 1 serverReplicas: 1
workerReplicas: 1 workerReplicas: 1

View File

@ -77,6 +77,11 @@ title: Release 2021.1.2
- core: fix tokens using wrong lookup - core: fix tokens using wrong lookup
- web: fix missing source create button - web: fix missing source create button
## Fixed in 2021.2.4-stable
- admin: fix missing success_urls causing errors on create/update forms
- core: fix typo in user settings causing sources to not show
## Upgrading ## Upgrading
This release does not introduce any new requirements. This release does not introduce any new requirements.