Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Copy metadata to runtime policies #1981

Merged
merged 5 commits into from
Feb 9, 2024

Conversation

dbuduev
Copy link
Contributor

@dbuduev dbuduev commented Feb 9, 2024

No description provided.

Signed-off-by: Dennis Buduev <dbuduev@users.noreply.github.com>
Signed-off-by: Dennis Buduev <dbuduev@users.noreply.github.com>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Signed-off-by: Dennis Buduev <dbuduev@users.noreply.github.com>
Signed-off-by: Dennis Buduev <dbuduev@users.noreply.github.com>
Signed-off-by: Dennis Buduev <dbuduev@users.noreply.github.com>
@dbuduev dbuduev marked this pull request as ready for review February 9, 2024 06:13
@dbuduev dbuduev requested a review from charithe February 9, 2024 06:13
Copy link
Contributor

@charithe charithe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we use the top-level metadata field of *PolicySet? A policy set is usually just a single policy anyway (except for scoped policies)

@dbuduev
Copy link
Contributor Author

dbuduev commented Feb 9, 2024

*PolicySet corresponds to several policies in the same scope hierarchy. These policies might have their own metadata.
Using single top-level metadata requires merging annotations from all these files.
Is that what you mean?

@charithe charithe changed the title feat: Copy metadata to runtime policies chore: Copy metadata to runtime policies Feb 9, 2024
Copy link
Contributor

@charithe charithe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see the problem now 👍🏽

@dbuduev dbuduev merged commit c253d87 into cerbos:main Feb 9, 2024
@dbuduev dbuduev deleted the feat/add-metadata-to-runnables branch February 26, 2025 01:44
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.

None yet

2 participants