Repository navigation
Harden crucible-kueue RBAC, pull secrets, and manifest validation - #547
Merged
Merged
Conversation
- Check both secretName and name in access::referenced and allowlist
secret/projected-secret volume subfields to close a dual-field RBAC
secret-read bypass.
- Remove cluster pull_secrets from caller_cluster_role secrets:get and
gate persistentvolumeclaims:get on the tenant profile.
- Verify ownerReferences on copy_pull_secrets 409, roll back newly
created workloads on post-create setup failure, add UID preconditions
to workload_delete, and match 409 specifically on create conflicts.
- Allowlist LLMInferenceService spec.storageInitializer to {enabled} and
gate pvc:// model URIs on the persistentVolumeClaim volume source.
- Validate JobSet replicatedJobs[].template.metadata, block finalizers
and ownerReferences on pod and PVC templates, handle explicit null in
default_lifetimes, reject negative quantities and root GIDs (0), and
reject multi-source volumes without a name.
Assisted-by: Claude
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Batch 1 of the crucible-kueue security & correctness audit:
secretNameandnameinaccess::referencedand allowlist subfields onvolumes[].secretandprojected.sources[].secret.pull_secretsfromcaller_cluster_rolesecrets: get, gatepersistentvolumeclaims: getonKueueAllowlist::Tenant, and gateLLMInferenceServicepvc://model URIs onpersistentVolumeClaimvolume-source allowance.ownerReferencesoncopy_pull_secrets409 instead of blindly ignoring it, roll back newly created workloads (with UID precondition) if post-create pull-secret copy or expose fails, add UID preconditions toworkload_delete, and match HTTP 409 specifically on create conflicts.spec.storageInitializerto{enabled: bool}and validateJobSetreplicatedJobs[].template.metadataagainst reserved labels/annotations and extra metadata fields.metadatato preventfinalizers/ownerReferences, applydefault_lifetimeswhen explicitnullis provided, reject negative resource quantities and root GIDs (runAsGroup/fsGroup/supplementalGroups: 0), and reject multi-source volumes whennameis omitted.