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

go: Split SignWithIntegrityBlock to be usable without flags #873

Conversation

sonkkeli
Copy link
Collaborator

This is a step towards being able to use the tooling with one's own signing strategy without being forced to use it as a CMD tool with flags. With this change one can create their own wrapper Golang tool with their own ISigningStrategy implementation and pass their input and output files without being forced to use flags.

The tool does not support providing the bytes directly as that would then limit the size of the web bundle into the max size of []byte array.

This is a step towards being able to use the tooling with one's own
signing strategy without being forced to use it as a CMD tool with
flags. With this change one can create their own wrapper Golang tool
with their own ISigningStrategy implementation and pass their input
and output files without being forced to use flags.

The tool does not support providing the bytes directly as that would
then limit the size of the web bundle into the max size of []byte
array.
@sonkkeli sonkkeli requested a review from irori May 19, 2023 12:19
Copy link
Collaborator

@irori irori left a comment

Choose a reason for hiding this comment

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

LGTM % comments

go/bundle/cmd/sign-bundle/integrityblock.go Outdated Show resolved Hide resolved
go/bundle/cmd/sign-bundle/integrityblock.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@irori irori left a comment

Choose a reason for hiding this comment

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

LGTM % comments

@sonkkeli sonkkeli merged commit 174426b into WICG:main May 22, 2023
7 checks passed
@sonkkeli sonkkeli deleted the refactor-golang-sign-function-to-separate-flag-parsing branch May 22, 2023 07:21
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