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

Migrating to the use of in-toto/go-witness module #331

Merged
merged 9 commits into from
Dec 15, 2023

Conversation

ChaosInTheCRD
Copy link
Collaborator

@ChaosInTheCRD ChaosInTheCRD commented Dec 15, 2023

to be merged after #328

@@ -313,7 +314,7 @@ func makepolicy(t *testing.T, functionary policy.Functionary, publicKey policy.P
}

p := policy.Policy{
Expires: time.Now().Add(1 * time.Hour),
Expires: metav1.Time{Time: time.Now().Add(1 * time.Hour)},
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We change this now that witness follows the new go-witness module

@ChaosInTheCRD ChaosInTheCRD changed the title Migrating to the use of in-toto/go-witness module WIP: Migrating to the use of in-toto/go-witness module Dec 15, 2023
@ChaosInTheCRD
Copy link
Collaborator Author

This branch uses a non release version of go-witness - wait for a release of go-witness before merging this PR

@ChaosInTheCRD ChaosInTheCRD changed the title WIP: Migrating to the use of in-toto/go-witness module Migrating to the use of in-toto/go-witness module Dec 15, 2023
Signed-off-by: Tom Meadows <tom@tmlabs.co.uk>
Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
@ChaosInTheCRD ChaosInTheCRD requested a review from jkjell December 15, 2023 16:54
@ChaosInTheCRD ChaosInTheCRD merged commit c06555d into in-toto:main Dec 15, 2023
10 checks passed
ChaosInTheCRD added a commit to ChaosInTheCRD/witness that referenced this pull request Jan 19, 2024
* added all imports

* fixing go sum

* changing go-witness back for now, makes more sense

* moved witness to using new in-toto/go-witness module

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* adding change to test now following newer version of policy

* running docgen as changes found from use of new module

* pinning to v0.2.0 of archivista and go-witness

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

---------

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
Signed-off-by: Tom Meadows <tom@tmlabs.co.uk>
ChaosInTheCRD added a commit to ChaosInTheCRD/witness that referenced this pull request Jan 19, 2024
* added all imports

* fixing go sum

* changing go-witness back for now, makes more sense

* moved witness to using new in-toto/go-witness module

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* adding change to test now following newer version of policy

* running docgen as changes found from use of new module

* pinning to v0.2.0 of archivista and go-witness

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

---------

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
Signed-off-by: Tom Meadows <tom@tmlabs.co.uk>
ChaosInTheCRD added a commit that referenced this pull request Jan 25, 2024
* starting proposed restructure

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* adding latest changes to README

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* fixed link to contributing md

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* made title title heading size

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* named the file wrong - doh

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* resizing headings at top

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* added spacing

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* a few more fixes

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* adding background section

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* removing bullet

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* final neatening

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* updated docs further - tutorial not working

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* adding demo gif

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* adding docusaurus stuff and more progress

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* saving progress, including docusaurus website

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* changing logo

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* adding snowfall

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* adding the concepts section

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* Adding the contributing.md from archivista (#327)

* adding the contributing.md from archivista

* dont need jq

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* Migrating go module (#328)

* added all imports

* fixing go sum

* changing go-witness back for now, makes more sense

---------

Co-authored-by: John Kjell <john@testifysec.com>
Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* Migrating to the use of in-toto/go-witness module (#331)

* added all imports

* fixing go sum

* changing go-witness back for now, makes more sense

* moved witness to using new in-toto/go-witness module

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* adding change to test now following newer version of policy

* running docgen as changes found from use of new module

* pinning to v0.2.0 of archivista and go-witness

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

---------

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
Signed-off-by: Tom Meadows <tom@tmlabs.co.uk>

* Bumping Go version for goreleaser (#333)

bumping go version for goreleaser

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* chore: bump actions/download-artifact from 3.0.2 to 4.0.0 (#335)

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3.0.2 to 4.0.0.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](actions/download-artifact@9bc31d5...7a1cd32)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: bump github/codeql-action from 2.22.9 to 3.22.11 (#336)

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.22.9 to 3.22.11.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@c0d1daa...b374143)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: John Kjell <john@testifysec.com>

* chore: bump actions/upload-artifact from 3.1.3 to 4.0.0 (#337)

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.3 to 4.0.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@a8a3f3a...c7d193f)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: John Kjell <john@testifysec.com>

* chore: bump github/codeql-action from 3.22.11 to 3.22.12 (#343)

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.22.11 to 3.22.12.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@b374143...012739e)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: bump actions/download-artifact from 4.0.0 to 4.1.0 (#342)

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](actions/download-artifact@7a1cd32...f44cd7b)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* moving config doc

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* adding latest changes

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* saving progress

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* adding keyless signing tutorial

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* doing images

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* fixing broken image

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* changing url

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* fixed images

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* updating docs and removing witness.md

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* Update go-git to resolve vulnerability (#346)

* Update go-git to resolve vulnerability

Signed-off-by: John Kjell <john@testifysec.com>

* Update x/crypto

Signed-off-by: John Kjell <john@testifysec.com>

---------

Signed-off-by: John Kjell <john@testifysec.com>

* chore: bump actions/dependency-review-action from 3.1.4 to 3.1.5 (#349)

* Add FOSSA license scanning

Signed-off-by: John Kjell <john@testifysec.com>

* Add Security MD files an add FOSSA scan badge

Signed-off-by: John Kjell <john@testifysec.com>
Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* Pin dependencies and restrict permissions

Signed-off-by: John Kjell <john@testifysec.com>

* Add signing to goreleaser and Best Practices badge to readme.

Signed-off-by: John Kjell <john@testifysec.com>
Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* Add cosign install

Signed-off-by: John Kjell <john@testifysec.com>

* Update cloudflare/circl due to dependabot failure (#352)

Signed-off-by: John Kjell <john@testifysec.com>

* updated package json

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* chore: bump actions/cache from 3.3.2 to 3.3.3 (#355)

Bumps [actions/cache](https://github.com/actions/cache) from 3.3.2 to 3.3.3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@704facf...e12d46a)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: bump actions/upload-artifact from 4.0.0 to 4.1.0 (#356)

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@c7d193f...1eb3cb2)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: bump github/codeql-action from 3.22.12 to 3.23.0 (#357)

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.22.12 to 3.23.0.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@012739e...e5f05b8)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: bump actions/download-artifact from 4.1.0 to 4.1.1 (#358)

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](actions/download-artifact@f44cd7b...6b208ae)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Initial attempt at PR and Issue templates (#351)

* Initial attempt at PR and Issue templates

Signed-off-by: John Kjell <john@testifysec.com>

* Address some review feedback

Signed-off-by: John Kjell <john@testifysec.com>

---------

Signed-off-by: John Kjell <john@testifysec.com>
Co-authored-by: Tom Meadows <tom@tmlabs.co.uk>

* Checking attestors for duplicates (#361)

* prevents duplicate attestors
* adding tests
* modified help for attestations flag
---------

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* removing witness website for now

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* editing image links

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* updating docgen

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* fixing docgen

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* addressing comments

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* fixing small issue with md

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

* fixed ellipsis

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>

---------

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
Signed-off-by: Tom Meadows <tom@tmlabs.co.uk>
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: John Kjell <john@testifysec.com>
Co-authored-by: John Kjell <john@testifysec.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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