Skip to content

Commit 09148e8

Browse files
committed
security: add annotation for validated SCC type
An SCC is being assigned to a workload based on the capabilities the ServiceAccount or user has. To distinct, against whom this was validated against, this annotation is being introduced.
1 parent ca270f6 commit 09148e8

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)