feat: escape composite-literal fields in NameOrganizationPair (#26675)

This commit is contained in:
Steven Masley
2026-06-24 14:27:23 -05:00
committed by GitHub
parent 6a57f4751f
commit c08b04adbc
2 changed files with 26 additions and 1 deletions
+3
View File
@@ -31,6 +31,9 @@ func TestRoleSyncTable(t *testing.T) {
"foo", "bar", "baz",
"create-bar", "create-baz",
"legacy-bar", rbac.RoleOrgAuditor(),
// Some arbitrary values to attempt to trip up the SQL in the matching.
"Role with (Special Characters)",
"NULL",
},
// bad-claim is a number, and will fail any role sync
"bad-claim": 100,