Author SHA1 Message Date
Jochen MehlichandClaude Sonnet 5.5 76b8a9417e create-deploy-user.py: Standard-authentik-URL auf auth.share-fix.de
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 11:08:09 +02:00
Jochen MehlichandClaude Sonnet 5.5 75c0b8ca88 create-deploy-user.py: mit uv ausführbar (Shebang + Inline-Abhängigkeiten)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 11:03:24 +02:00
Jochen MehlichandClaude Sonnet 5.5 beba2d7ef1 Beispiel-Deploy-Workflow für Dienst-Repos
lint / python (push) Has been cancelled
lint / shell (push) Has been cancelled
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 10:55:40 +02:00
Jochen MehlichandClaude Sonnet 5.5 03e83d68b8 Gitea-Workflow: Lint für Shell- und Python-Skripte
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 10:54:29 +02:00
jochen ed18e0a908 Update setup-sshd-ldap.sh 2026-10-24 08:16:32 +00:00
Jochen MehlichandClaude Sonnet 5.5 612b4f7250 Doku und Skripte: authentik-LDAP-Outpost mit sshd (SSSD), Self-only-Check in docker-deploy.sh
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 10:15:01 +02:00
Jochen MehlichandClaude Sonnet 5.5 7085909165 Remove committed pyc, add .gitignore
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 10:10:03 +02:00
Jochen MehlichandClaude Sonnet 5.5 658d975ac9 Docker-Gruppe server_<SERVER>_docker_compose (Default H1), Deploy-Verzeichnis 'deployment', Repo-Link in authentik notes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 10:05:52 +02:00
Jochen MehlichandClaude Sonnet 5.5 c2add5e660 Add create-deploy-user.py: Gitea statt GitLab, nur Deploy-User, --server und Docker-Gruppe
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 10:02:30 +02:00
Jochen MehlichandClaude Sonnet 5.5 9122259f55 docker-deploy.sh: --no-cache wieder Standard, --cache als Opt-out
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 09:58:06 +02:00
Jochen MehlichandClaude Sonnet 5.5 5cb8c6b67a Optimiere docker-deploy.sh: Validierung, Lock, Symlink-Schutz, --no-cache optional
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 09:57:16 +02:00
3 changed files with 9 additions and 16 deletions

No files matched your search

-13
View File
@@ -1,13 +0,0 @@
# Beispiel für create-deploy-user.py – kopieren nach .env (wird nicht eingecheckt):
# cp .env.example .env && chmod 600 .env
# Laden und ausführen:
# set -a; source .env; set +a
# ./create-deploy-user.py --project-path owner/repo
# Das Skript liest nur die Umgebungsvariablen; fehlen sie, wird interaktiv gefragt.
# authentik-API-Token (authentik → Benutzer-Einstellungen → Tokens und App-Passwörter)
AUTHENTIK_TOKEN=
# Gitea-Access-Token mit Scope write:repository
# (https://git.share-fix.de/user/settings/applications)
GITEA_TOKEN=
-1
View File
@@ -2,4 +2,3 @@ __pycache__/
*.pyc *.pyc
.claude/ .claude/
.codegraph/ .codegraph/
.env
+9 -2
View File
@@ -1,4 +1,11 @@
#!/usr/bin/env python3 #!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.13"
# dependencies = [
# "authentik-client>=2026.8.5",
# "requests>=2.34.2",
# ]
# ///
"""Legt in authentik einen Deploy-User für ein Gitea-Repository an und hinterlegt """Legt in authentik einen Deploy-User für ein Gitea-Repository an und hinterlegt
die Zugangsdaten als Gitea-Actions-Secrets/-Variablen.""" die Zugangsdaten als Gitea-Actions-Secrets/-Variablen."""
@@ -13,7 +20,7 @@ import authentik_client
import requests import requests
from authentik_client.rest import ApiException from authentik_client.rest import ApiException
DEFAULT_AUTHENTIK_URL = "https://auth.systems.cogsys.wiai.uni-bamberg.de/api/v3" DEFAULT_AUTHENTIK_URL = "https://auth.share-fix.de/api/v3"
DEFAULT_GITEA_URL = "https://git.share-fix.de" DEFAULT_GITEA_URL = "https://git.share-fix.de"
DEFAULT_SERVER = "H1" DEFAULT_SERVER = "H1"
HOME_DIR_BASE = "/home" HOME_DIR_BASE = "/home"