- Mar 29, 2022
-
-
Lily Sturmann authored
Signed-off-by:
Lily Sturmann <lsturman@redhat.com>
-
- Mar 26, 2022
-
-
Lily Sturmann authored
tlog_id specifes the active shard and is kept for backwards compatibility. To avoid replicating information, the shard config file is used only to specify inactive shards and must be used in conjunction with a tlog_id flag. Together, these build the logRanges type in the sharding module. Signed-off-by:
Lily Sturmann <lsturman@redhat.com>
-
- Mar 22, 2022
-
-
priyawadhwa authored
* Replace trillian_log_server.log_id_ranges flag with a config file This will make it easier to specify mulitple shards, along with associated tree IDs and lengths. Each shard may eventually have its own signer/public key as well, so it'll be easier to pass those in through a config file rather than through CLI flags. Signed-off-by:
Priya Wadhwa <priya@chainguard.dev> * Add active tree ID to ranges Signed-off-by:
Priya Wadhwa <priya@chainguard.dev>
-
- Mar 21, 2022
-
-
priyawadhwa authored
* Update loginfo to return info about inactive shards This also updates `rekor-cli` to verify inactive shards if they exist. It also updates the sharding integration test to run loginfo and store state based on TreeID if available. Signed-off-by:
Priya Wadhwa <priya@chainguard.dev> * Fix typo Signed-off-by:
Priya Wadhwa <priya@chainguard.dev> * specify resp code in error Signed-off-by:
Priya Wadhwa <priya@chainguard.dev>
-
- Mar 16, 2022
-
-
priyawadhwa authored
This refactors the loginfo file in preparation for also getting info for inactive shards and verifying them as well. Signed-off-by:
Priya Wadhwa <priya@chainguard.dev>
-
priyawadhwa authored
We will need this so we can get proofs for inactive shards. This will be used by `loginfo`. Signed-off-by:
Priya Wadhwa <priya@chainguard.dev>
-
- Mar 11, 2022
-
-
priyawadhwa authored
* Return virtual index when creating and getting a log entry Use the virtual index when signing an entry on creation, and return that to the end user. There shouldn't be any observable difference here at the moment, until we actually shard the log. Signed-off-by:
Priya Wadhwa <priya@chainguard.dev> * Remove pointer to logRanges so value can't be modified Also make all fields private and only accessible via funcition calls Signed-off-by:
Priya Wadhwa <priya@chainguard.dev> * Fix virtual log index bug when getting indicies in inactive shards Signed-off-by:
Priya Wadhwa <priya@chainguard.dev>
-
- Mar 09, 2022
-
-
priyawadhwa authored
Signed-off-by:
Priya Wadhwa <priya@chainguard.dev>
-
priyawadhwa authored
When printing the TreeID with rekor-cli loginfo, if the output is parsed through jq then the TreeID gets rounded down as an int because it is bigger than JSON allows Numbers to be. This is how jq works and is mentioned in the FAQ: https://github.com/stedolan/jq/wiki/FAQ#numbers Switching this to a string will preserve the actual Tree ID. Signed-off-by:
Priya Wadhwa <priya@chainguard.dev>
-
- Mar 08, 2022
-
-
dlorenc authored
And also handle the roothash. Signed-off-by:
Dan Lorenc <lorenc.d@gmail.com>
-
dlorenc authored
The logid field comes back as nil (which is expected), but we break trying to dereference that for formatting. Signed-off-by:
Dan Lorenc <lorenc.d@gmail.com>
-
- Mar 05, 2022
-
-
Lily Sturmann authored
* Add helpers and refactor sharding package - Adds a function to get a TreeID from an ID string - Adds testing for the above - Consolidates validation logic for UUID, TreeID, EntryID - Removes code that attempts to use ActiveIndex() in the sharding package, as this is not accessible due to import cycles - Other small cleanup and typo fixes Signed-off-by:
Lily Sturmann <lsturman@redhat.com> * Change logRanges to work with int64 This is the type used by the trillian TreeID and saves from having to convert in multiple places. Signed-off-by:
Lily Sturmann <lsturman@redhat.com> * Add TreeID to LogInfo API endpoint WARNING: breaks loginfo cmd to current prod server Signed-off-by:
Lily Sturmann <lsturman@redhat.com> * Update API based on logRangesFlag Signed-off-by:
Lily Sturmann <lsturman@redhat.com> * Use API's logRanges to retrieve artifacts Signed-off-by:
Lily Sturmann <lsturman@redhat.com>
-
- Feb 18, 2022
-
-
Bob Callaway authored
This sets the User-Agent header to match the format used in cosign of rekor-cli/vX.Y.Z (OS) (ARCH) Signed-off-by:
Bob Callaway <bob.callaway@gmail.com>
-
- Feb 10, 2022
-
-
Scott Nichols authored
Signed-off-by:
Scott Nichols <n3wscott@chainguard.dev>
-
- Jan 25, 2022
-
-
Lily Sturmann authored
* Move range.go into sharding package to avoid import cycles Signed-off-by:
Lily Sturmann <lsturman@redhat.com> * Change name of FullID to EntryID Signed-off-by:
Lily Sturmann <lsturman@redhat.com> * Add unit tests for sharding package Also add a few helper functions and update names. Signed-off-by:
Lily Sturmann <lsturman@redhat.com> * Add logic to GET artifacts via old UUID or new EntryID Signed-off-by:
Lily Sturmann <lsturman@redhat.com> * Add e2e test for longer EntryID Signed-off-by:
Lily Sturmann <lsturman@redhat.com>
-
- Jan 18, 2022
-
-
Bob Callaway authored
* helpful error message for hashedrekord types Signed-off-by:
Bob Callaway <bob.callaway@gmail.com>
-
- Jan 06, 2022
-
-
Lily Sturmann authored
* Add sharding package Signed-off-by:
Lily Sturmann <lsturman@redhat.com> * Update validators to support future FullID A FullID is a UUID prepended by a TreeID. This will be used for log sharding Signed-off-by:
Lily Sturmann <lsturman@redhat.com>
-
- Dec 29, 2021
-
-
dlorenc authored
Right now the type itself is defined in the cli package, which means we can't use it without an import cycle. Signed-off-by:
Dan Lorenc <lorenc.d@gmail.com>
-
- Dec 27, 2021
-
-
Morten Linderud authored
* rekor-server: Implement /api/v1/version This implements a version endpoint for rekor. This helps figure out the version the server is currently running. It could later be used to implement version compatibility with CLI utilities. Example: λ rekor main» curl -s localhost:3000/api/v1/version | jq { "builddate": "'2021-12-27T13:20:32Z'", "commit": "12d1a47c", "treestate": "dirty", "version": "v0.4.0-15-g12d1a47-dirty" } This removes some duplication of the build flags and inserts them into /pkg/api which is then reused across the utilities. Signed-off-by:
Morten Linderud <morten@linderud.pw> Signed-off-by:
Morten Linderud <morten@linderud.pw> * Generated files Signed-off-by:
Morten Linderud <morten@linderud.pw>
-
dlorenc authored
This was never actually correct - these are technically "payloadTypes", which are not actually mediaTypes. Some implementations mistakenly sent incorrect media types, so it appeared to work. The GCS storage layer rejected correct implementations that sent the payloadType, because these are not valid mediaTypes. We never used this field anyway, so let's drop it. I verified that the API correctly ignores unknown fields, so removing this will not break clients that send it. Signed-off-by:
Dan Lorenc <lorenc.d@gmail.com>
-
- Dec 21, 2021
-
-
dlorenc authored
This should help out with #515. Signed-off-by:
Dan Lorenc <lorenc.d@gmail.com>
-
- Nov 23, 2021
-
-
Harry Fallows authored
* Upgraded go-playground/validator module to v10 Signed-off-by:
Harry Fallows <harryfallows@protonmail.com> * Manually re-added missing go.sum entry for module providing package github.com/dvyukov/go-fuzz/go-fuzz-dep Signed-off-by:
Harry Fallows <harryfallows@protonmail.com>
-
- Nov 22, 2021
-
-
dlorenc authored
I had to change a few package imports to deal with upstream refactoring. Signed-off-by:
Dan Lorenc <lorenc.d@gmail.com>
-
- Nov 19, 2021
-
-
asraa authored
* WIP: new hashed type Signed-off-by:
Dan Lorenc <lorenc.d@gmail.com> * wip add signature verification Signed-off-by:
Asra Ali <asraa@google.com> * address bobs comments Signed-off-by:
Asra Ali <asraa@google.com> Co-authored-by:
Dan Lorenc <lorenc.d@gmail.com>
-
- Nov 17, 2021
-
-
Mikhail Swift authored
Adds the ability to search for indicies with sha1 hashes. Currently rekor custom types can store indices with formats other than sha256:<hash>. Particularly the in-toto type can do this. One particular use case of interest is indexing log entries by git commit hash, which largely still use sha1. Signed-off-by:
Mikhail Swift <mswift@mswift.dev>
-
- Nov 16, 2021
-
-
Lily Sturmann authored
Signed-off-by:
Lily Sturmann <lsturman@redhat.com>
-
- Nov 15, 2021
-
-
Naveen authored
* Included pprof for profiling the application. Included pprof for profiling the application. Signed-off-by:
naveen <172697+naveensrinivasan@users.noreply.github.com> * Update cmd/rekor-server/app/root.go Co-authored-by:
Bob Callaway <bobcallaway@users.noreply.github.com> * Update cmd/rekor-server/app/root.go Co-authored-by:
Bob Callaway <bobcallaway@users.noreply.github.com> Co-authored-by:
Bob Callaway <bobcallaway@users.noreply.github.com>
-
- Oct 28, 2021
-
-
Bob Callaway authored
Signed-off-by:
Bob Callaway <bob.callaway@gmail.com>
-
- Sep 19, 2021
-
-
Dan Luhring authored
Signed-off-by:
Dan Luhring <dan.luhring@anchore.com>
-
- Sep 17, 2021
-
-
dlorenc authored
This is part of the temporal sharding work. The flag is not hooked up anywhere yet. Signed-off-by:
Dan Lorenc <dlorenc@google.com>
-
- Aug 22, 2021
-
-
dlorenc authored
Fixes #420. Signed-off-by:
Dan Lorenc <dlorenc@google.com>
-
- Aug 19, 2021
-
-
kpcyrd authored
Signed-off-by:
kpcyrd <git@rxv.cc>
-
- Aug 18, 2021
-
-
asraa authored
* Adds rekor TUF type Co-authored-by:
Santiago Torres <santiagotorres@purdue.edu> Co-authored-by:
Trishank Karthik Kuppusamy <trishank.kuppusamy@datadoghq.com> Co-authored-by:
Marina Moore <mnm678@gmail.com> Signed-off-by:
Asra Ali <asraa@google.com> * add type documentation Signed-off-by:
Asra Ali <asraa@google.com> * Address bob comments Signed-off-by:
Asra Ali <asraa@google.com> * run make Signed-off-by:
Asra Ali <asraa@google.com> * wip Signed-off-by:
Asra Ali <asraa@google.com> * Address comments Signed-off-by:
Asra Ali <asraa@google.com> Co-authored-by:
Santiago Torres <santiagotorres@purdue.edu> Co-authored-by:
Trishank Karthik Kuppusamy <trishank.kuppusamy@datadoghq.com> Co-authored-by:
Marina Moore <mnm678@gmail.com>
-
- Aug 08, 2021
-
-
Carlos Tadeu Panato Junior authored
Signed-off-by:
Carlos Panato <ctadeu@gmail.com>
-
- Jul 30, 2021
-
-
asraa authored
* use an in memory timestamping key Signed-off-by:
Asra Ali <asraa@google.com> * address comments Signed-off-by:
Asra Ali <asraa@google.com>
-
- Jul 29, 2021
-
-
asraa authored
* just commit timestampnote Signed-off-by:
Asra Ali <asraa@google.com> * add signed timestamp note Signed-off-by:
Asra Ali <asraa@google.com> * address validating sha comment Signed-off-by:
Asra Ali <asraa@google.com>
-
- Jul 28, 2021
-
-
Hector Fernandez authored
* fix: port flag override Signed-off-by:
Hector Fernandez <hectorj@gmail.com> * chore: update rekor_server.port old references Signed-off-by:
Hector Fernandez <hectorj@gmail.com>
-
Bob Callaway authored
Signed-off-by:
Bob Callaway <bob.callaway@gmail.com>
-
Bob Callaway authored
Signed-off-by:
Bob Callaway <bob.callaway@gmail.com>
-
- Jul 27, 2021
-
-
Bob Callaway authored
Signed-off-by:
Bob Callaway <bob.callaway@gmail.com>
-