update authentik to 2026.5.2#14846
Conversation
| CUR_VERSION="$(<"$HOME/.authentik")" | ||
| IFS='.' read -ra PARTS <<< "${CUR_VERSION#version/}" | ||
| MAJOR=${PARTS[0]} | ||
| MINOR=${PARTS[1]} |
There was a problem hiding this comment.
| CUR_VERSION="$(<"$HOME/.authentik")" | |
| IFS='.' read -ra PARTS <<< "${CUR_VERSION#version/}" | |
| MAJOR=${PARTS[0]} | |
| MINOR=${PARTS[1]} | |
| IFS='.' read -r MAJOR MINOR PATCH <<< "${$(<"$HOME/.authentik")#version/}" |
Not tested, but possibly cleaner.
There was a problem hiding this comment.
Not working:
-bash: ${$(< "$HOME/.authentik")#version/}: bad substitution
There was a problem hiding this comment.
read -r MAJOR MINOR PATCH <<< "$(sed 's/^version\///; s/\./ /g' "$HOME/.authentik")" ?
|
@CrazyWolf13 @MickLesk |
| AUTHENTIK_LISTEN__METRICS="[::]:8300" | ||
| EOF | ||
| msg_ok "Updated Worker and Server config!" | ||
| msg_warn "Please check /etc/default/authentik-worker and /etc/default/authentik-server config files for port configurations!" |
There was a problem hiding this comment.
why does one need to review the port after an update?
There was a problem hiding this comment.
Previously, the port configuration was read from the /etc/authentik/config.yml file. The http, https, and metrics ports are valid for both the worker and the server. This is not a problem in a docker environment, since they run in two separate containers, but in our case they cause a conflict. During testing, I found that this conflict prevents the services from starting in some cases, so I created separate environment files for both the worker and the server, where the ports are overridden. If the user has modified the default ports, they must be transferred to the new environment file.
There was a problem hiding this comment.
okay I see. So essentially the ports stay the same unless the user customized them?
Also then there was an error in the script as port was noted to be 9000?
There was a problem hiding this comment.
The default http port is 9000, through which the service can be accessed. The default https port is 9443, through which the service can be accessed securely. However, as I wrote in the pull request description, starting with version 2026.5.2, the initial settings can only be made via https 9443, so at the end of the script I changed the port to 9443 and I would recommend changing this on the website as well. After the initial settings, the service can also be accessed via http 9000.
There was a problem hiding this comment.
can you add this into PR Description? Its marked as "breaking change" so the users can look about it and see the recent big changes and why ?
There was a problem hiding this comment.
It's in the description, although not as detailed as here.
If you feel it's necessary, I can elaborate there as well.
|
@thieneret you can now use profiles for rust Example: |
Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
|
RUST_TOOLCHAIN="stable" tested and working |
| UV_PYTHON_INSTALL_DIR="/usr/local/bin" PYTHON_VERSION="3.14.3" setup_uv | ||
| setup_rust | ||
| RUST_PROFILE="minimal" RUST_TOOLCHAIN="stable" setup_rust | ||
|
|
There was a problem hiding this comment.
maybe we add here setup_yq too if something broke in bashrc during update?
✍️ Description
I finally managed to finish the authentik update script. Sorry for the delay, but I don't have much time these days. Plus, there was a typo in my test configuration and it took me 2 days to find it. My fault. :(
So about the update:
I can't find the JSON file in the repository to modify the necessary information.
🔗 Related Issue
✅ Prerequisites (X in brackets)
🛠️ Type of Change (X in brackets)
README,AppName.md,CONTRIBUTING.md, or other docs.