load-admin-aliases

command
v0.0.0-...-6cd6959 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

load-admin-aliases loads admin-defined user aliases from declarative-config ConfigMap.

This command reads the admin-alias-configmap.yml from declarative-config and upserts source_login → target_login mappings into the user_aliases table with reason='admin'.

Usage:

load-admin-aliases -db-host <host> -db-user <user> -db-password <pass>

The command: - Reads admin-alias-configmap.yml directly from declarative-config (no hand-copied duplicates) - Parses the YAML structure: provider -> list of {source, target} entries - Upserts each pair with reason='admin' and created_at = now() - Detects and logs removed aliases (no auto-delete - requires manual review) - Uses ON CONFLICT (source_login) DO UPDATE for idempotent upserts

See plan.md "Identity ingest endpoint" section for full context.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL