Skip to content

fix: Use system field in OPA policies#1048

Open
MohidSheraz wants to merge 1 commit into
openstack-experimental:mainfrom
MohidSheraz:fix/opa-system-scope-field
Open

fix: Use system field in OPA policies#1048
MohidSheraz wants to merge 1 commit into
openstack-experimental:mainfrom
MohidSheraz:fix/opa-system-scope-field

Conversation

@MohidSheraz

Copy link
Copy Markdown
Collaborator

Update system-scoped reader policies to useinput.credentials.system, matching the field serialized by the RustCredentials type.

Update the corresponding Rego test inputs to use the same system field.

This restores policy rules that were previously checking the nonexistentcredentials.system_scope field.

Closes #1045.

Testing

Ran OPA formatting validation with OPA 1.16.2 in Docker

Ran OPA policy tests with OPA 1.16.2 in Docker

Ran git diff --check

Note: was made with assistance of CodeX.

Signed-off-by: Mohid Sheraz <msheraz@andrew.cmu.edu>
@gtema

gtema commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

as expected - there is a merge conflict now

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OPA policies check credentials.system_scope but the Rust field is system — system-reader rule is dead

2 participants