Skip to content

Commit d6a9c98

Browse files
committed
Update: Zitadel
1 parent 7c539b1 commit d6a9c98

3 files changed

Lines changed: 70 additions & 4 deletions

File tree

‎ct/zitadel.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ var_unprivileged="${var_unprivileged:-1}"
1919

2020
if [[ -z "${var_zitadel_login:-}" ]] && command -v pveversion >/dev/null 2>&1; then
2121
var_zitadel_login=$(msg_menu "Choose the Zitadel login UI" \
22-
"v2" "Login V2 (Zitadel's default for new instances)" \
23-
"v1" "Login V1 (classic login built into the API)")
22+
"v2" "Login V2, Zitadel's default (HTTPS, self-signed certificate)" \
23+
"v1" "Login V1, the classic login built into the API (HTTP)")
2424
fi
2525
export var_zitadel_login="${var_zitadel_login:-v2}"
2626

‎install/zitadel-install.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ EOF
112112
systemctl enable -q --now zitadel
113113
msg_ok "Created Service"
114114

115-
if [[ "$var_zitadel_login" == "v2" ]]; then
115+
if [[ "$var_zitadel_login" != "v1" ]]; then
116116
NODE_VERSION="24" setup_nodejs
117117
fetch_and_deploy_gh_release "zitadel-login" "zitadel/zitadel" "prebuild" "latest" "/opt/zitadel-login" "zitadel-login.tar.gz"
118118

@@ -123,7 +123,7 @@ if [[ "$var_zitadel_login" == "v2" ]]; then
123123
ZITADEL_API_URL=http://127.0.0.1:8081
124124
ZITADEL_API_AWAITINITIALCONN=5m
125125
ZITADEL_SERVICE_USER_TOKEN_FILE=/opt/zitadel/login-client.pat
126-
ZITADEL_SESSION_COOKIE_SECRET=$(openssl rand -base64 32)
126+
ZITADEL_SESSION_COOKIE_SECRET=$(random_password 48)
127127
NEXT_PUBLIC_BASE_PATH=/ui/v2/login
128128
HOSTNAME=127.0.0.1
129129
PORT=3000

‎json/zitadel.json‎

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"name": "Zitadel",
3+
"slug": "zitadel",
4+
"categories": [
5+
6
6+
],
7+
"date_created": "2025-02-10",
8+
"type": "ct",
9+
"updateable": true,
10+
"privileged": false,
11+
"architectures": [
12+
"amd64",
13+
"arm64"
14+
],
15+
"interface_port": 8080,
16+
"documentation": "https://zitadel.com/docs/guides/overview",
17+
"website": "https://zitadel.com",
18+
"repository": "https://github.com/zitadel/zitadel",
19+
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/zitadel.webp",
20+
"description": "Zitadel is an open-source identity and access management platform. It provides single sign-on over OpenID Connect, OAuth 2.0 and SAML, passkeys and multi-factor authentication, and multi-tenancy through organizations, with every change kept in an audit trail.",
21+
"install_methods": [
22+
{
23+
"type": "default",
24+
"script": "ct/zitadel.sh",
25+
"config_path": "/opt/zitadel/config.yaml",
26+
"resources": {
27+
"cpu": 1,
28+
"ram": 1024,
29+
"hdd": 8,
30+
"os": "Debian",
31+
"version": "13"
32+
}
33+
}
34+
],
35+
"default_credentials": {
36+
"username": "zitadel-admin@zitadel.localhost",
37+
"password": null
38+
},
39+
"app_vars": [
40+
{
41+
"name": "var_zitadel_login",
42+
"label": "Login UI",
43+
"type": "select",
44+
"options": [
45+
"v2",
46+
"v1"
47+
],
48+
"default": "v2",
49+
"help": "v2 is Zitadel's default since v4: a separate login app, served together with the API over HTTPS on port 8080 with a self-signed certificate. v1 is the classic login built into the API, over plain HTTP. Updates keep the choice"
50+
}
51+
],
52+
"notes": [
53+
{
54+
"text": "Sign in at /ui/console as zitadel-admin@zitadel.localhost with the initial password from ~/zitadel.creds in the container. Zitadel asks for a new password at the first sign-in.",
55+
"type": "info"
56+
},
57+
{
58+
"text": "With Login V2 (default) Zitadel runs at https://<IP>:8080 with a self-signed certificate; accept it in the browser. Login V1 stays on plain http://<IP>:8080.",
59+
"type": "info"
60+
},
61+
{
62+
"text": "Zitadel only answers on the ExternalDomain in /opt/zitadel/config.yaml (the container IP). To use a hostname, change it, run zitadel setup --masterkeyFile /opt/zitadel/.masterkey --config /opt/zitadel/config.yaml and restart zitadel.",
63+
"type": "info"
64+
}
65+
]
66+
}

0 commit comments

Comments
 (0)