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

Host policies for VSAs of SLSA Build Levels #837

Open
behnazh-w opened this issue Aug 21, 2024 · 0 comments
Open

Host policies for VSAs of SLSA Build Levels #837

behnazh-w opened this issue Aug 21, 2024 · 0 comments
Labels
policy engine The issues related to policy engine vsa The issues related to Verification Summary Attestation

Comments

@behnazh-w
Copy link
Member

behnazh-w commented Aug 21, 2024

Currently, we store the content of the policy in a VSA and do not report the verifiedLevels as required by the VSA specification. See this example VSA.

Macaron policies do not always map clearly to SLSA Build Levels. But for cases where such a mapping is possible, we can host the policies in the Macaron's GitHub repository and use the link in the VSA's predicate.policy.uri. We can then report the corresponding SLSA Build Level in predicate.verifiedLevels.

At the moment, Macaron's policies require a target software component to be specified in the policy itself. To host policies described above, we can include these hosted policies as libraries and require the user to add the additional apply_policy_to rule e.g.,

apply_policy_to("SLSA_BUILD_LEVEL_1", component_id) :-
    is_component(component_id, purl),
    match("pkg:pypi/django@.*", purl).

Alternatively, we can add a feature that takes the target software component as input of the verify-policy command and use a templating system to generate the final policy for the policy engine (Souffle).

Related issues:

@behnazh-w behnazh-w added policy engine The issues related to policy engine vsa The issues related to Verification Summary Attestation labels Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
policy engine The issues related to policy engine vsa The issues related to Verification Summary Attestation
Projects
None yet
Development

No branches or pull requests

1 participant