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

Clean up and match actual fragments. Don't base64 encode the rego policy. #24

Merged
merged 5 commits into from
Sep 9, 2024

Conversation

KenGordon
Copy link
Contributor

Signed-off-by: Ken Gordon [email protected]
Don't keep printing an emply 'Doc' when an error is deteched in the cose file.
Clean up and match actual fragments. Don't base64 encode the rego policy.
Have the makefile extract the issuer from the self signed certs so we can always start with a clean set. This avoids storing certs, keys and also epiration trouble.

pkg/cosesign1/Makefile Outdated Show resolved Hide resolved
@KenGordon
Copy link
Contributor Author

KenGordon commented Apr 11, 2024 via email

@KenGordon
Copy link
Contributor Author

KenGordon commented Apr 12, 2024 via email

…ED= and ISSUER_DID overrides will work. Note though that the signing is by the (generated) private key and so setting the ISSUER_DID override will result in a badly formed fragment, as in the fragment case the issuer DID MUST match the cert chain.

Signed-off-by: Ken Gordon <[email protected]>
Change order so that the infra.rego.cose exists.
anmaxvl
anmaxvl previously approved these changes Apr 18, 2024
@anmaxvl anmaxvl force-pushed the kegordo/Makefile-cleanup branch 5 times, most recently from 9346ecb to 5f5935c Compare July 8, 2024 18:27
Remove references of `infra.rego.cose.base64` from Makefile and
code.

Add `AUTOPARSE_CHAIN` param to makefile, which will parse the
pem certs automatically, otherwise test values will be set.

Update tests expectations and parameters

Signed-off-by: Maksim An <[email protected]>
Copy link
Contributor

@takuro-sato takuro-sato left a comment

Choose a reason for hiding this comment

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

Tried make all, go test ./..., make did-check, and make did-check AUTOPARSE_CHAIN=1 locally. Looks like they are working as expected to me.

Copy link
Contributor

Choose a reason for hiding this comment

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

Is adding this intentional? Looks like it's not used by any code. I guess it can be used to try out %.rego.cose though.

@MahatiC MahatiC merged commit 1502025 into main Sep 9, 2024
2 checks passed
@anmaxvl anmaxvl deleted the kegordo/Makefile-cleanup branch October 30, 2024 17:11
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.

4 participants