diff --git a/.github/workflows/translation-compile.yml b/.github/workflows/translation-compile.yml index af4521c8e..c6bb1bf5c 100644 --- a/.github/workflows/translation-compile.yml +++ b/.github/workflows/translation-compile.yml @@ -4,6 +4,9 @@ on: branches: [ master ] paths: - '/locale/' + pull_request: + paths: + - '/locale/' schedule: - cron: "0 */2 * * *" workflow_dispatch: diff --git a/go.mod b/go.mod index 2c06b1115..9c33fa4ee 100644 --- a/go.mod +++ b/go.mod @@ -29,7 +29,7 @@ require ( github.com/prometheus/client_golang v1.11.0 github.com/recws-org/recws v1.3.1 github.com/sirupsen/logrus v1.8.1 - goauthentik.io/api v0.2021104.2 + goauthentik.io/api v0.2021104.3 golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 // indirect golang.org/x/net v0.0.0-20210510120150-4163338589ed // indirect golang.org/x/oauth2 v0.0.0-20210323180902-22b0adad7558 diff --git a/go.sum b/go.sum index 04dabce51..a15142348 100644 --- a/go.sum +++ b/go.sum @@ -561,8 +561,8 @@ go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -goauthentik.io/api v0.2021104.2 h1:A2SAggdhVj9Xoj+9Ti9DIoOAi+x2WwIlSNNgJCsVZfQ= -goauthentik.io/api v0.2021104.2/go.mod h1:02nnD4FRd8lu8A1+ZuzqownBgvAhdCKzqkKX8v7JMTE= +goauthentik.io/api v0.2021104.3 h1:JG7hKXCdneHXpwWkCAgp6D/fG9NaMUggnUbv18os4Bo= +goauthentik.io/api v0.2021104.3/go.mod h1:02nnD4FRd8lu8A1+ZuzqownBgvAhdCKzqkKX8v7JMTE= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= diff --git a/internal/outpost/ak/api.go b/internal/outpost/ak/api.go index 271f00b00..198d14946 100644 --- a/internal/outpost/ak/api.go +++ b/internal/outpost/ak/api.go @@ -6,6 +6,9 @@ import ( "math/rand" "net/http" "net/url" + "os" + "os/signal" + "syscall" "time" "github.com/go-openapi/strfmt" @@ -87,8 +90,9 @@ func NewAPIController(akURL url.URL, token string) *APIController { instanceUUID: uuid.New(), Outpost: outpost, } - ac.logger.WithField("offset", ac.reloadOffset).Debug("HA Reload offset") + ac.logger.WithField("offset", ac.reloadOffset.String()).Debug("HA Reload offset") ac.initWS(akURL, strfmt.UUID(outpost.Pk)) + ac.configureRefreshSignal() return ac } @@ -107,6 +111,21 @@ func (a *APIController) Start() error { return nil } +func (a *APIController) configureRefreshSignal() { + s := make(chan os.Signal, 1) + go func() { + for { + <-s + err := a.OnRefresh() + if err != nil { + a.logger.WithError(err).Warning("failed to refresh") + } + } + }() + signal.Notify(s, syscall.SIGUSR1) + a.logger.Debug("Enabled USR1 hook to reload") +} + func (a *APIController) OnRefresh() error { // Because we don't know the outpost UUID, we simply do a list and pick the first // The service account this token belongs to should only have access to a single outpost diff --git a/locale/de/LC_MESSAGES/django.mo b/locale/de/LC_MESSAGES/django.mo index 01a6cacfe..e2c2797fd 100644 Binary files a/locale/de/LC_MESSAGES/django.mo and b/locale/de/LC_MESSAGES/django.mo differ diff --git a/locale/de/LC_MESSAGES/django.po b/locale/de/LC_MESSAGES/django.po index 41535121c..ae601950c 100644 --- a/locale/de/LC_MESSAGES/django.po +++ b/locale/de/LC_MESSAGES/django.po @@ -955,10 +955,6 @@ msgstr "" "Schlüsselpaar, das zum Signieren ausgehender Antworten an den Dienstanbieter" " verwendet wird." -#: authentik/providers/saml/models.py:150 -msgid "Signing Keypair" -msgstr "Schlüsselpaar für Signierung" - #: authentik/providers/saml/models.py:180 msgid "SAML Provider" msgstr "SAML Anbieter" diff --git a/web/src/user/LibraryPage.ts b/web/src/user/LibraryPage.ts index 8c758b178..70c62e72f 100644 --- a/web/src/user/LibraryPage.ts +++ b/web/src/user/LibraryPage.ts @@ -99,7 +99,15 @@ export class LibraryPage extends LitElement { return html`