Files
cozystack/hack
Aleksei Sviridkin 7a8f27c77b test(nats): compare both tenant grant surfaces against their whole form
The guard filtered each surface down to the entries that name a Secret
and compared the subset. Every such filter admits the spelling it did
not anticipate: on the ResourceDefinition a label selector names no
resource, and controller.cert-manager.io/fao is stamped on both
key-bearing Secrets, so a selector on it grants the CA private key; on
the dashboard Role a rule with no resourceNames names no Secret, a rule
with resources ["*"] names no resource, and a ClusterRole is not a
Role. All of them passed green.

Compare the whole ResourceDefinition include list, the rendered RBAC
kinds and the Role's complete rule list instead. Aggregating with
eval-all also drops the dependence on the Role being the first rendered
document. The header claimed both surfaces are out of reach of
helm-unittest for want of a chart template; both are rendered, and what
is missing is a suite that asserts on them.

Signed-off-by: Aleksei Sviridkin <3811295@gmail.com>
2026-08-15 22:40:58 +03:00
..
2026-02-17 22:54:12 +01:00