atomicdata-dev / atomic-data-docs

Atomic Data is a specification to make it easier to exchange data.
https://docs.atomicdata.dev
MIT License
17 stars 7 forks source link

Allow non-signer to author commits #72

Open joepio opened 3 years ago

joepio commented 3 years ago

While working on authentication and key management #49, I kept bumping into a nasty issue: Signing both requests and commits is not always possible. I need to have a fallback that has a lesser audit trail. I think adding an optional author field in Commits is a decent compromise. The commit will still be signed, but this time by the Server's default agent.

This is very similar to how git functions. If you edit a file on github.com, it will be signed by github, but authored by you. This means that we have to put away our cryptographic proof for authorship, but that's of course the entire point.

What this would allow me to do, is to introduce an /unsignedCommit endpoint that allows for some other authentication mechanism, such as OAuth or WebAuthn.