Skip to content

feat: add algo hash list for digest calc in config#292

Merged
jkjell merged 1 commit intoin-toto:mainfrom
codeaucafe:feat/ISSUE-73/add-digest-algos-to-config
Dec 5, 2023
Merged

feat: add algo hash list for digest calc in config#292
jkjell merged 1 commit intoin-toto:mainfrom
codeaucafe:feat/ISSUE-73/add-digest-algos-to-config

Conversation

@codeaucafe
Copy link
Contributor

Introduce flag that allows for slice of string's indicating hash algorithms to be used for digest calculation. Uses go-witness.attestation.WithHashes to add the slice to attestation run options. Will error if can't parse hash from its string value.

Add to run tests to test for acceptable/unacceptable hash algorithms accepted

Refs: #73

@codeaucafe codeaucafe force-pushed the feat/ISSUE-73/add-digest-algos-to-config branch from 32d3c10 to 58a49da Compare November 2, 2023 03:38
@codeaucafe
Copy link
Contributor Author

hey @mikhailswift not sure I understand why the failed pipelines are failing for ACTIONS_ID_TOKEN_REQUEST_URL is not set. From my understanding this should be set given permissions for the workflow is set 😕

@jkjell
Copy link
Member

jkjell commented Nov 6, 2023

The failures are from the way GHA treats the permissions on that token when running from a PR from a fork. We're working on a fix to the actions and will hopefully have something soon!

@codeaucafe
Copy link
Contributor Author

Got it. No rush.

Thank you 🙏

Cheers,
dd

@jkjell
Copy link
Member

jkjell commented Nov 14, 2023

@DataDavD Looks like everything is passing now besides the doc gen. You can run this locally with make docgen

@codeaucafe
Copy link
Contributor Author

Thanks! I'm out of the country but will do this first thing when I return at the end of the month.

@jkjell jkjell force-pushed the feat/ISSUE-73/add-digest-algos-to-config branch from 126a27b to 01ff9ea Compare November 27, 2023 20:56
@codeaucafe codeaucafe force-pushed the feat/ISSUE-73/add-digest-algos-to-config branch from 01ff9ea to 6b97fa3 Compare December 2, 2023 02:16
@codeaucafe
Copy link
Contributor Author

I just updated. Thanks again @jkjell.

Introduce cobra/config flag that allows for slice of string's indicating
hash algorithms to be used for digest calculation. Uses
go-witness.attestation.WithHashes to add the slice to attestation run
options. Will error if can't parse hash from its string value.

Add test for testing acceptable/unacceptable hash algorithms accepted.

Refs: in-toto#73
@jkjell jkjell force-pushed the feat/ISSUE-73/add-digest-algos-to-config branch from 6b97fa3 to 3fac8af Compare December 5, 2023 01:51
@jkjell
Copy link
Member

jkjell commented Dec 5, 2023

Thanks @DataDavD

@codeaucafe
Copy link
Contributor Author

No problem! Very happy to help! Thanks for letting me contribute to your great project!

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.

2 participants