Skip to content

Commit f587fb6

Browse files
Merge pull request #2211 from ibihim/ibihim/2025-02-25_validated-scc-type-annotation
security: add annotation for validated SCC type
2 parents 635291d + 09148e8 commit f587fb6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

security/v1/consts.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,9 @@ const (
1313

1414
// MinimallySufficientPodSecurityStandard indicates the PodSecurityStandard that matched the SCCs available to the users of the namespace.
1515
MinimallySufficientPodSecurityStandard = "security.openshift.io/MinimallySufficientPodSecurityStandard"
16+
17+
// ValidatedSCCSubjectTypeAnnotation indicates the subject type that allowed the
18+
// SCC admission. This can be used by controllers to detect potential issues
19+
// between user-driven SCC usage and the ServiceAccount-driven SCC usage.
20+
ValidatedSCCSubjectTypeAnnotation = "security.openshift.io/validated-scc-subject-type"
1621
)

0 commit comments

Comments
 (0)