transparency-dev / serverless-log Goto Github PK
View Code? Open in Web Editor NEWServerless transparency log
License: Apache License 2.0
Serverless transparency log
License: Apache License 2.0
The GCP log implementation uses request preconditions to address race conditions.
Tile write failure: implemented in #70.
Entries have been sequenced successfully, but when Integrate
runs, writing a tile (partial or full) somehow results in a tile that is different that the one that has already been written. This should not happen.
Checkpoint write failure: implemented in #61.
If there is a race condition in Integrate
, one run will fail because the checkpoint will have changed by the time it wants to write its version of the checkpoint. This may happen in race conditions. Since Integrate
is idempotent, you just need to invoke the Cloud Function again.
If you are invoking the functions from Cloud Build (as we are in the Armored Witness project), the log operator will need to manually retry the Integrate
step of the Cloud Build config that failed OR the log will not be updated until the next time an entry gets added and Sequence and Integrate are invoked. It is okay for the latter to happen wrt integrity of the log; the only consequence is that the log will not include the failed run's entry until the next Integrate call.
It's an edge case, but one I just hit. For an empty log checkpoint (size 0) I got the following error:
failed to create proof builder: invalid checkpoint hash e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855, expected
I believe this is from https://github.com/transparency-dev/serverless-log/blob/main/client/client.go#L115
Triggering checkpoint:
transparency.dev/armored-witness/firmware_transparency/ci/1
0
47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
โ transparency.dev-aw-ftlog-ci 9UecHqNZRspvlnqtGMydkw9WC9l3iKU6myILmi2PzzObAnWzZZXXdWC+GFb9EfhMlrgme1IMeAlq8EacCm7R7JWXngo=
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.