- 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 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 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>
-
- 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>
-
- 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>
-
- Apr 15, 2021
-
-
Carlos Tadeu Panato Junior authored
* update boilerplate header and apply go fmt Signed-off-by:
Carlos Panato <ctadeu@gmail.com> * lints: fix golangci-lint issues Signed-off-by:
Carlos Panato <ctadeu@gmail.com> * updated based on feedback Signed-off-by:
Carlos Panato <ctadeu@gmail.com>
-
- Feb 13, 2021
-
-
dlorenc authored
-
- Feb 09, 2021
-
-
dlorenc authored
This works! We can use it to track # of new entries over time.
-