aboutsummaryrefslogtreecommitdiff
path: root/handler.go
Commit message (Collapse)AuthorAgeFilesLines
* major refactor based on README.md and TODOsRasmus Dahlberg2021-02-251-245/+0
| | | | | | Updated types, improved units tests, isolated most test data to have it in one place, renamed and created new files to improve readability, and fixed a bunch of minor TODOs.
* added basic server-side cosigning (work in progress)Rasmus Dahlberg2021-02-171-10/+48
|
* started replacing x509 with namespaceRasmus Dahlberg2021-01-271-3/+3
|
* started to clean-up instanceRasmus Dahlberg2020-12-011-4/+10
| | | | | Things like opening files is better place in the server package. Any code that is difficult to test should also not be in the STFE package.
* removed explicit string functionRasmus Dahlberg2020-12-011-4/+4
|
* added an endpoint typeRasmus Dahlberg2020-11-301-5/+5
|
* added isolated trillian proof testsRasmus Dahlberg2020-11-241-4/+4
|
* added start on isolated trillian checksRasmus Dahlberg2020-11-231-4/+4
|
* added type testsRasmus Dahlberg2020-11-171-3/+3
| | | | | | | | | | As a result these changes were made: - Simplified a few New* functions - Allowed empty inclusion and consistency proofs, which is in contrast to not being able to marshal them due to `tls:"minlen:1"`. For example, an inclusion proof will be empty for a Merkle tree of size 1. - Disallowed empty signatures and chains in a leaf's Appendix - Removed unnecessary examples
* fixed redundant tree head checkingRasmus Dahlberg2020-11-171-6/+4
|
* removed unnecessary variableRasmus Dahlberg2020-11-051-15/+10
|
* refactored trillian response checkingRasmus Dahlberg2020-11-051-25/+10
| | | | Added a few checks that might be redundant, but better safe than sorry.
* refactored signing/verification parts that are log specificRasmus Dahlberg2020-11-051-2/+2
| | | | These methods are now private and attached to LogParameters.
* moved sth and sdi metrics into the signer componentRasmus Dahlberg2020-11-051-3/+0
|
* renamed appHandler to handlerRasmus Dahlberg2020-11-051-4/+4
|
* minor refactor of request-response code pathRasmus Dahlberg2020-11-051-13/+13
| | | | | Mainly attaching log-specific functionality to LogParameters, and returning pointers to struct (as opposed to struct).
* added prometheus metricsRasmus Dahlberg2020-11-041-1/+13
|
* refactor types and documentationRasmus Dahlberg2020-10-301-6/+4
| | | | | | Structured files a bit better, added more documentation, switched to pointers as default (unless specifically motivated not to do so), and encapsulated TLS (un)marshaling for the respective types that use it.
* added sanity checks on Trillian responsesRasmus Dahlberg2020-10-301-23/+23
| | | | Based on the sanity checks that CTFE does.
* shortened variable namesRasmus Dahlberg2020-10-301-34/+34
|
* added max range and get-entries sanity checkingRasmus Dahlberg2020-10-301-15/+5
|
* started refactoring add-entry code path according to docRasmus Dahlberg2020-10-301-7/+2
|
* updated json output according to api docRasmus Dahlberg2020-10-301-9/+8
|
* fixed tls length specifiersRasmus Dahlberg2020-10-291-1/+1
|
* refactored and added sth error-checkingRasmus Dahlberg2020-10-291-9/+3
|
* go fmtRasmus Dahlberg2020-10-281-3/+3
|
* added consistency-proof code pathRasmus Dahlberg2020-10-281-0/+24
|
* added signed tree head and get-sth code pathRasmus Dahlberg2020-10-281-2/+33
|
* added ed25519 signing and SDIsRasmus Dahlberg2020-10-271-1/+12
|
* decoupled log instance and infoRasmus Dahlberg2020-10-271-19/+20
| | | | | Makes things a bit more modular. As part of this process I also replaced ct/x509 with crypto/x509, which already suits our needs.
* moved common json-write code into a helperRasmus Dahlberg2020-10-271-31/+10
|
* added leaf appendixRasmus Dahlberg2020-10-271-4/+4
|
* added start on get-anchors code pathRasmus Dahlberg2020-10-231-2/+13
|
* added basic trust-anchor code pathRasmus Dahlberg2020-10-231-2/+2
| | | | | Pretty much the bare minimum to load trust anchors from file and check that the submitter's certificate chains back to something valid.
* moved TODO on gRPC error codes to a noteRasmus Dahlberg2020-10-231-5/+1
| | | | | | | It appears that a bad gRPC code is already captured as part of err. In other words, additional detail can be inside the following error clause. See example in CTFE's addChainInternal() function.
* added commentsRasmus Dahlberg2020-10-231-2/+2
|
* refactored add-entry code pathRasmus Dahlberg2020-10-231-43/+7
|
* refactored type.goRasmus Dahlberg2020-10-231-3/+2
| | | | | Moved structures for in/out HTTP data into reqres.go and added basic doc comments. A few minor edits as well to make things consistent.
* indented using go fmtRasmus Dahlberg2020-10-221-3/+3
|
* Added start on get-proof-by-hash code pathRasmus Dahlberg2020-10-221-0/+37
| | | | | | If the provided tree size is (mostly) valid the Trillian back-end is asked to provide an inclusion proof, which is then placed in an InclusionProofV1 structure and returned as a JSON object.
* added start on get-entries code pathRasmus Dahlberg2020-10-221-2/+37
| | | | | If the provided range is (mostly) valid the corresponding log entries are fetched from the Trillian back-end and returned as a JSON object.
* added parameter parsing for get-entriesRasmus Dahlberg2020-10-221-1/+8
|
* added start on addEntry code pathRasmus Dahlberg2020-10-211-3/+68
| | | | | If the POSTed StItem can be parsed without errors it is handed over to the Trillian back-end.
* added basic structureRasmus Dahlberg2020-10-201-0/+78
An STFE server instance that dials the Trillian gRPC back-end, and which listens on six different HTTP endpoints but without any actual processing.