feat(authz): introduce conditional access control via CEL (#4040)

This commit is contained in:
Matheus Pimenta
2026-05-09 20:43:00 +01:00
committed by GitHub
parent ddb6279a25
commit 8a6674f198
15 changed files with 1636 additions and 85 deletions
+6
View File
@@ -792,6 +792,12 @@ func validateAuthzPolicies(config *config.Config, logger zlog.Logger) error {
return fmt.Errorf("%w: %s", zerr.ErrBadConfig, msg)
}
if _, err := api.CompileAccessControl(accessControlConfig); err != nil {
logger.Error().Err(err).Msg("failed to compile access control policy conditions")
return fmt.Errorf("%w: %w", zerr.ErrBadConfig, err)
}
return nil
}