diff --git a/.github/workflows/slsa-goreleaser.yml b/.github/workflows/slsa-goreleaser.yml index c1cd8f3..33a645d 100644 --- a/.github/workflows/slsa-goreleaser.yml +++ b/.github/workflows/slsa-goreleaser.yml @@ -2,8 +2,6 @@ name: SLSA go releaser on: workflow_dispatch: push: - tags: - - "*" permissions: read-all @@ -20,7 +18,7 @@ jobs: fetch-depth: 0 - id: ldflags run: | - echo "::set-output name=value::$(./scripts/version-ldflags)" + echo "::set-output name=value::$(git rev-list -1 HEAD)" # Trusted builder. build: permissions: diff --git a/design.md b/design.md deleted file mode 100644 index 1b00ab5..0000000 --- a/design.md +++ /dev/null @@ -1,25 +0,0 @@ -# Requirements - -* Trustless -* Handles computers going offline and online for extended periods of time -* Cost effective - -# Design Overview - -* Client keeps local Set in sqlite. HistoryEntry has usual metadata + an ID that is incrementing per machine -* Client has USER_SECRET -* Client gets installed with USER_SECRET -* Client asks backend for N, number of registered computers for HMAC(USER_SECRET, "comp_count"). It tells the backend to increment this. - * Periodically it checks the backend for a new N -* Sends message to the queue named HMAC(USER_SECRET,i) for 0 --> N asking for history dump -* Every time `hishtory query` is run, it checks HMAC(USER_SECRET,i) for 0 --> N for new history entries -* Every time it records a hishtory entry (or batched shortly afterwards) it sends that entry to all queues -* With some frequency (once a day?) it reads all queues for new history entries - -# Offline Recovery Flow - -* Once-per-day, it checks if it doesn't have any history entries from other computers within the past EXPIRY days. If it doesn't, it sends a dump request to all queues, then receives their responses - - - -## SQS/PubSub/Redis/Postgres Queue \ No newline at end of file