Skip to content

[draft] Fix bundle/config/mutator/resourcemutator/apply_bundle_permissions.go - #7291

Draft
lennartkats-db wants to merge 1 commit into
mainfrom
factory/dabs/aabd17eaae87
Draft

lennartkats-db wants to merge 1 commit into
mainfrom
factory/dabs/aabd17eaae87

Conversation

@lennartkats-db

Copy link
Copy Markdown
Contributor

Summary

A group set to CAN_VIEW in a target's permissions and CAN_MANAGE_RUN on a job in that target now keeps the job permission without an overlap warning from ApplyBundlePermissions. This removes the reported warning that blocks strict validation for this layered configuration. Root-level permission overlaps continue to warn.

Before and after

Issue #7032 reports that the target and job entries for the same group produce a warning, which strict mode treats as an error. Before this change, the mutator retained the job permission but warned about the target entry. After this change, it recognizes the selected target's portion of the merged permission list and skips that warning when the same group has an explicit job permission. It still warns when the root-level entry overlaps the job.

Verification

  • Focused Go regression: TestTargetGroupPermissionOverridesJobWithoutWarning failed on base 3aa5c9607bff73d3fb18a4c6e63b9f03235f3de7 and passed at head 48d7c4c5fdd36d0fa8ee9268a43a4eae54ea7bd6. The base emitted one warning for the target-only case and two for the root-and-target case; the head met the asserted counts of zero and one, respectively, and retained the job's CAN_MANAGE_RUN permission.
  • A CLI bundle validate --strict acceptance run and current-head CI result are not evidenced here. The independent output review was skipped under the pilot policy.

@lennartkats-db lennartkats-db added DABs DABs related issues software-factory PR produced by the software factories task labels Nov 2, 2026
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 48d7c4c

Run: 41478818944

Env ✅​pass 🙈​skip Time
✅​ aws linux-2core-8gb 281 15 7:39
✅​ aws-windows-latest-4core-16gb 283 13 7:15
✅​ azure linux-2core-8gb 280 15 6:47
✅​ azure-windows-latest-4core-16gb 282 13 7:05
✅​ gcp linux-2core-8gb 281 15 6:44
✅​ gcp-windows-latest-4core-16gb 283 13 7:31
Top 6 slowest tests (at least 2 minutes):
duration env testname
7:16 gcp-windows-latest-4core-16gb TestAccept
7:09 aws-windows-latest-4core-16gb TestAccept
6:58 azure-windows-latest-4core-16gb TestAccept
3:15 aws linux-2core-8gb TestAccept
3:09 gcp linux-2core-8gb TestAccept
3:05 azure linux-2core-8gb TestAccept

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DABs DABs related issues software-factory PR produced by the software factories task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants