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

Fix path in security policyenginesimulator sample #2329

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

MahatiC
Copy link
Member

@MahatiC MahatiC commented Nov 29, 2024

No description provided.

@MahatiC MahatiC requested a review from a team as a code owner November 29, 2024 11:07
@@ -5,7 +5,7 @@
"feed": "contoso.azurecr.io/infra",
"issuer": "did:web:contoso.com",
"namespace": "fragment",
"local_path": "relative/path/to/local/fragment.rego"
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this really need to change? Is this not supposed to be a relative path?

Copy link
Member Author

Choose a reason for hiding this comment

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

@anmaxvl It needs to change, because it fails when you try to run it. The custom policy one does work as it points to the right path.

I'd expect the example in here to work. Custom policy works as it points to the correct file (https://github.com/microsoft/hcsshim/blob/main/internal/tools/policyenginesimulator/samples/simple_custom/commands.json#L8)

Am I missing any reasoning to keep it this way even though it fails when you run it? This wrong path seems to be serving no purpose?

Copy link
Contributor

Choose a reason for hiding this comment

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

I was treating this as an example and not necessarily an actual path that should be used, but I don't feel strongly about it either.

@anmaxvl anmaxvl self-assigned this Dec 2, 2024
@MahatiC MahatiC requested a review from anmaxvl December 4, 2024 15:14
@anmaxvl anmaxvl merged commit ca5ca6e into microsoft:main Dec 5, 2024
19 checks passed
@MahatiC MahatiC deleted the fragment-path branch December 18, 2024 10:08
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.

3 participants