Repository navigation
feat(infra): trim isolated backup and vulnfeeds roles from osv-worker on oss-vdb-test - #6491
Closed
another-rex wants to merge 1 commit into
Closed
another-rex wants to merge 1 commit into
another-rex wants to merge 1 commit into
Conversation
Contributor
Author
|
Closing in favor of trimming isolated osv-worker roles cleanly across both oss-vdb-test and oss-vdb together once prod Workload Identity (Phase 1 + Phase 2) is also rolled out, avoiding an extra temporary Terraform flag. |
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.
Overview
Trims the isolated backup and vulnfeeds write permissions off
osv-worker@oss-vdb-testnow thatGKE_METADATAWorkload Identity (PR #6460) is live onoss-vdb-testand dedicated SAs (osv-backup,osv-vulnfeeds,osv-gitter,osv-monitoring) own those workloads.Details
trim_isolated_worker_rolesboolean (defaultfalse) tomodules/osv_pipelineandmodules/osv(gated withlifecycle.preconditionchecks sooss-vdbandprivate-osvare unaffected until their Phase 2 cutover completes):osv-worker@oss-vdb-test:roles/datastore.importExportAdmin,roles/storage.objectAdminonosv-test-affected-commits(with amovedblock sooss-vdb/private-osvsee zero churn), androles/storage.objectAdminonosv-test-backup.osv-worker@oss-vdb-test(create_before_destroy):roles/storage.objectAdmin→roles/storage.objectVieweronosv-test-cve-osv-conversionandosv-test-debian-osv(read-only access is still required byimporter/worker/recovererpersource_test.yaml, while writes belong solely toosv-vulnfeeds).roles/monitoring.viewer: Still required bycustommetrics(go/cmd/custommetricscallsmonitoring.ListTimeSeries).trim_isolated_worker_roles = trueindeployment/terraform/environments/oss-vdb-test/main.tf.terraform applyneeded —deployment@oss-vdbalready holdsroles/resourcemanager.projectIamAdminand bucketstorage.buckets.setIamPolicy(viaroles/editor/roles/storage.legacyBucketOwner) onoss-vdb-test, so merging applies cleanly viabuild-and-stage. Recommend confirming tonight's18:00 AEDTbackupCronJob run onosv-backupbefore merging.Testing
terraform fmt -check -recursive deployment/terraform.terraform plan -lock=falseonoss-vdb-test: removes the 3 isolated backup bindings and replaces the 2 vulnfeeds conversion bucket bindings withroles/storage.objectViewer(create_before_destroy).osv-gitter,osv-vulnfeeds,osv-monitoring, andosv-workerlive onoss-vdb-testunderGKE_METADATAwith zeroPERMISSION_DENIEDerrors.agy