fix auth model

This commit is contained in:
ayurishchev committed 2026-08-21 09:58:08 +03:00
1 parent f81285b151
commit 5e3800e9cb
10 files changed
+901 -70

No files matched your search

+19 -3
View File
@@ -14,12 +14,28 @@ database:
openstack:
mode: "real" # "mock" | "real" — mock uses an in-memory
# OpenStack stand-in for local dev/testing
auth_method: "token" # "token" (default) | "password" — see below
auth_url_env: "OS_AUTH_URL"
token_env: "OS_TOKEN"
project_id_env: "OS_PROJECT_ID"
project_name_env: "OS_PROJECT_NAME"
project_domain_env: "OS_PROJECT_DOMAIN_NAME"
region_env: "OS_REGION_NAME"
interface_env: "OS_INTERFACE" # optional; empty env value defaults to "public"
# auth_method: "token" — an admin supplies an already project-scoped
# token directly; it's used as-is for every call, never exchanged for a
# new one. Simplest option, but it can't renew itself: when the token
# expires, control-api starts failing OpenStack calls until the operator
# reissues OS_TOKEN and restarts the process.
token_env: "OS_TOKEN"
# auth_method: "password" — the client authenticates with a normal
# Keystone username/password and automatically re-authenticates
# (mints a fresh token) whenever the current one is rejected, for as
# long as the process runs. Trade-off: a long-lived password credential
# sits in the environment file instead of a token.
username_env: "OS_USERNAME"
user_domain_name_env: "OS_USER_DOMAIN_NAME"
password_env: "OS_PASSWORD"
orchestrator:
poll_interval_seconds: 5