Conversation
903e5c4 to
5af4587
Compare
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
…nt from nil and if so the sigstore configuration function is called. Signed-off-by: Matheus Santos <mfcs@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Matheus Santos <mfcs@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Matheus Santos <mfcs@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Matheus Santos <mfcs@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Matheus Santos <mfcs@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Matheus Santos <mfcs@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Matheus Santos <mfcs@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
…trings (#38) Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Matheus Santos <mfcs@cesar.org.br> Co-authored-by: Matheus Santos <mfcs@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
…illallves#49) Signed-off-by: Matheus Santos <mfcs@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
* feat: adding option to enable sigstore functions Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * fix: fixed enable variable if clause Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * docs: updated documentation on sigstore toggle Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * feat: moved sigstore options to experimental section Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * docs: updated docs for experimental k8s options Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> Co-authored-by: Rodrigo Lopes <rlc2@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
* refactor: refactoring the configureSigstore function in k8s_posix.go file Signed-off-by: Matheus Santos <mfcs@cesar.org.br> * refactor: refactored rekor URL tests and added more test cases Signed-off-by: Matheus Santos <mfcs@cesar.org.br> Co-authored-by: Matheus Santos <mfcs@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
* fix: added label to log line Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * feat: added telemetry tag for container name Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * logs: added container name telemetry label to log line Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * tests: fixed sigstore config on some tests Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * fix: removed URL empty checking before config as the error is handled in config Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> Co-authored-by: Rodrigo Lopes <rlc2@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
* Refactory on k8s unit tests Signed-off-by: Willian Alves <wiilliian.alves@gmail.com> * Fixed: Refactory on k8s unit tests Signed-off-by: Willian Alves <wiilliian.alves@gmail.com> * Fixed: Refactory on k8s unit tests for windows Signed-off-by: Willian Alves <wiilliian.alves@gmail.com> * Fixed: Refactory on k8s unit tests for windows 0 Signed-off-by: Willian Alves <wiilliian.alves@gmail.com> * Fixed: Refactory on k8s unit tests for windows 1 Signed-off-by: Willian Alves <wiilliian.alves@gmail.com> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
…on (willallves#67) Signed-off-by: Matheus Santos <mfcs@cesar.org.br> Signed-off-by: Matheus Santos <mfcs@cesar.org.br> Co-authored-by: Matheus Santos <mfcs@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
…llves#81) * refactor: changed DeepEqual to require.Equal and other changes Signed-off-by: Matheus Santos <mfcs@cesar.org.br> * refactor: deleted blank line Signed-off-by: Matheus Santos <mfcs@cesar.org.br> * refactor: added a blank line in the end of the file Signed-off-by: Matheus Santos <mfcs@cesar.org.br> Signed-off-by: Matheus Santos <mfcs@cesar.org.br> Co-authored-by: Matheus Santos <mfcs@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Co-authored-by: Marcos Yacob <marcos.yacob@hpe.com> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
willallves#88) refactor: pr requests to change from deepEqual to require.Equal, remove some code from k8s_test file and refactor an error message in sigstorecache_test file Signed-off-by: Matheus Santos <mfcs@cesar.org.br> Signed-off-by: Matheus Santos <mfcs@cesar.org.br> Co-authored-by: Matheus Santos <mfcs@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
* Added test case for last element added as first of list Signed-off-by: Willian Alves <wiilliian.alves@gmail.com> * tests: removed parallel call to t.Run on sequential tests Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * tests: added longer sequence of tests and checks Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * tests: refactored TestNewCache to not use multiple test case syntax for a single test case Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com> Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> Co-authored-by: Rodrigo Lopes <rlc2@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
…illallves#107) * fix: refactoring so sigstore errors make attestation fail completely Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * lint: fixed lint complain Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * tests: moved new requireAttestFailureWithPod test helper function to k8s_posix_test.go, fixing windows linting Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
…llallves#112) Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
* refactor: used oci.Signature instead of v1.Layer, and removed unneeded nil functions Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * refactor: streamlined returns Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * refactor: removed unused functions for error signature types Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * refactor: refactored TestNew and added fail messages Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * refactor: refactored New tests Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * test: added function mock factory functions Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * tests: placed deepEqual usage in TestSigstoreimpl_FetchImageSignatures Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * tests: added argument testing for mock functions in TestSigstoreimpl_FetchImageSignatures Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * tests: added a comment. Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * tests: added error value checking to TestSigstoreimpl_FetchImageSignatures Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * tests: added error and arg checking on TestSigstoreimpl_ValidateImage Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * tests: refactored function mocks Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * tests: fixed fail functions Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * tests: added error and args checking to TestSigstoreimpl_AttestContainerSignatures Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * tests: added error checking on SetRekorURL Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * tests: moved signature types and helper functions to end of file Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * tests: added extra test cases to TestSigstoreimpl_ClearAllowedSubjects Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * lint: fixing trailing newlines and comment spacing Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * lint: removed trailing newline Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
* refactor: refactored external function hooks into single field Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * tests: added checkOpts argument checking to TestSigstoreimpl_FetchImageSignatures refactor: moved functions to hook struct in TestSigstoreimpl_FetchImageSignatures Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
* fix: added error return to AttestContainerSignatures method * fix: changed variable from camel to snake case * fix: add returned type to error message in getBundleSignatureContent method * fix: changed log from camel to snake case * fix: fixed nil payload test case * fix: fix import order * fix: sync with remote * fix: change import order Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
* refactor: added error checking on checkOpts handling tests: added checkOpts checking to TestSigstoreimpl_AttestContainerSignatures Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * tests: added empty rekorURL test case to TestSigstoreimpl_AttestContainerSignatures Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * fix:removed unused function Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
…errors (willallves#121) * logs: added container id to SelectorValuesFromSignature log lines Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * refactor: refactored SelectorValuesFromSignature to error out on all errors Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
* draft private functions Signed-off-by: Willian Alves <wiilliian.alves@gmail.com> * Refactory getBundle private Signed-off-by: Willian Alves <wiilliian.alves@gmail.com> * Refactory getSubject private Signed-off-by: Willian Alves <wiilliian.alves@gmail.com> * remove test case repeat Signed-off-by: Willian Alves <wiilliian.alves@gmail.com> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
* tests: removed typecast usage for sigstoreMock Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * tests:removed usage of contains on skipped and allowed lists Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> * tests: fixed TestConfigure for skippedImages and AllowedSubjects lists Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
* draft private functions Signed-off-by: Willian Alves <wiilliian.alves@gmail.com> * Refactory getBundle private Signed-off-by: Willian Alves <wiilliian.alves@gmail.com> * Refactory getSubject private Signed-off-by: Willian Alves <wiilliian.alves@gmail.com> * remove test case repeat Signed-off-by: Willian Alves <wiilliian.alves@gmail.com> * refactor: refactored SelectorValuesFromSignature to return errors instead of logging tests: added error checking to SelectorValuesFromSignature testinng Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com> Signed-off-by: Rodrigo Lopes <rlc2@cesar.org.br> Co-authored-by: Willian Alves <wiilliian.alves@gmail.com> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
* test: add hashed manifest test case Signed-off-by: joaoguazzelli <joao.guazzelli@gmail.com> * fix: fixed lint error Signed-off-by: joaoguazzelli <joao.guazzelli@gmail.com> * fix: removed duplicated test cases Signed-off-by: joaoguazzelli <joao.guazzelli@gmail.com> Signed-off-by: joaoguazzelli <joao.guazzelli@gmail.com> Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com> Signed-off-by: Marcos Yacob <marcos.yacob@hpe.com>
Signed-off-by: joaoguazzelli <joao.guazzelli@gmail.com>
5af4587 to
0052820
Compare
joaoguazzelli
pushed a commit
that referenced
this pull request
Oct 14, 2022
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
joaoguazzelli
pushed a commit
that referenced
this pull request
Oct 17, 2022
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
joaoguazzelli
pushed a commit
that referenced
this pull request
Oct 18, 2022
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com>
joaoguazzelli
pushed a commit
that referenced
this pull request
Nov 10, 2022
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com> Signed-off-by: Matheus Santos <matheusdefariascs@gmail.com>
joaoguazzelli
pushed a commit
that referenced
this pull request
Nov 23, 2022
Signed-off-by: Willian Alves <wiilliian.alves@gmail.com> Signed-off-by: Matheus Santos <matheusdefariascs@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.