mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-06 07:03:45 +09:00
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>