Files
cozystack/internal/lineagecontrollerwebhook
Andrei Kvapil b9652c4faa feat(lineage-webhook): tell whether a definition shows a Secret
The webhook decides a Secret's tenant visibility from the owning
ApplicationDefinition on every write that drops the lineage labels, as
an operator's rewrite does. A conversion that hides an operator Secret
has to know whether the definition in the API already excludes it,
because a label it writes earlier is undone by the next rewrite.

SecretTenantVisible evaluates a definition exactly as the webhook does.
The tests also load the converted RabbitMQ, MongoDB, MariaDB and
ClickHouse definitions and pin that each one hides the platform Secrets
its conversion keeps, as an operator rewrite would present them.

Assisted-by: LLM
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2026-12-02 20:38:09 +01:00
..