Repository navigation
events: fix SystemTask timestamps and scheduling - #8435
Conversation
Signed-off-by: Jens Langhammer <[email protected]>
✅ Deploy Preview for authentik-storybook canceled.
|
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-events-fix-system-tasks-1707244810-07a269d
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sFor arm64, use these values: AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-events-fix-system-tasks-1707244810-07a269d-arm64
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-events-fix-system-tasks-1707244810-07a269dFor arm64, use these values: authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-events-fix-system-tasks-1707244810-07a269d-arm64Afterwards, run the upgrade commands from the latest release notes. |
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
✅ Deploy Preview for authentik ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
* *: deduplicate boilerplate for importing related models Signed-off-by: Jens Langhammer <[email protected]> * also auto-import .checks Signed-off-by: Jens Langhammer <[email protected]> * fix error during prometheus metrics from #8435 Signed-off-by: Jens Langhammer <[email protected]> --------- Signed-off-by: Jens Langhammer <[email protected]>
|
Hello, Is it possible that the following modification to authentik/crypto/apps.py will generate a JWT exception in Eclipse Che? Is it possible that there has been a typing error and that one of the not_valid_after_utc should be in fact not_valid_before_utc? authentik/crypto/apps.py - now < cert.certificate.not_valid_before or now > cert.certificate.not_valid_after
+ now < cert.certificate.not_valid_after_utc or now > cert.certificate.not_valid_after_utcEclipse Che Java exceptions after moving from 2023.10.7 to 2024.2.2 HTTP Status 500 – Internal Server Error
Type Exception Report
Message JWT expired at 2024-03-07T12:37:30Z. Current time: 2024-03-07T12:48:34Z, a difference of 661493 milliseconds. Allowed clock skew: 3000 milliseconds.
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
io.jsonwebtoken.ExpiredJwtException: JWT expired at 2024-03-07T12:37:30Z. Current time: 2024-03-07T12:48:34Z, a difference of 661493 milliseconds. Allowed clock skew: 3000 milliseconds.
io.jsonwebtoken.impl.DefaultJwtParser.parse(DefaultJwtParser.java:448)
io.jsonwebtoken.impl.DefaultJwtParser.parse(DefaultJwtParser.java:550)
io.jsonwebtoken.impl.DefaultJwtParser.parseClaimsJws(DefaultJwtParser.java:610)
io.jsonwebtoken.impl.ImmutableJwtParser.parseClaimsJws(ImmutableJwtParser.java:173)
org.eclipse.che.multiuser.oidc.filter.OidcTokenInitializationFilter.processToken(OidcTokenInitializationFilter.java:80)
org.eclipse.che.multiuser.api.authentication.commons.filter.MultiUserEnvironmentInitializationFilter.doFilter(MultiUserEnvironmentInitializationFilter.java:127)
org.eclipse.che.commons.logback.filter.RequestIdLoggerFilter.doFilter(RequestIdLoggerFilter.java:50)
com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:121)
com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:133)
Note The full stack trace of the root cause is available in the server logs.
Apache Tomcat/10.1.6I can create an dedicated issue if needed. Thanks. |
Details
Turns out
default_timerdoes indeed not return a timestamp but a more relative time, so we use a real timestamp for start/end but still track the duration withdefault_timerThis also fixes a couple issues with prefilling, and also system tasks on schedules sometimes not running depending on when instances of authentik start/stop
Checklist
ak test authentik/)make lint-fix)If an API change has been made
make gen-build)If changes to the frontend have been made
make web)If applicable
make website)