Add credential checks

This change adds authentication/credential checks to sensitive API
methods, depending on the access level granted to the authenticated
user. It also adds the logic to save the authenticated user to the audit
log entries.

Note: the protobuf definitions were updated in a backwards-incompatible
way (KillSwitchAuthorizedUser.AccessLevel enum). This can be done since
this product hasn't yet launched.

Fixed: twpowertools:46
Change-Id: I9bf888d6108f463369143610d4bd5b256035b68f
9 files changed
tree: 2a6c47a1857fcd1a744170b8c64e042d405aaa2b
  1. api_proto/
  2. cmd/
  3. internal/
  4. schema/
  5. .gitreview
  6. go.mod
  7. go.sum
  8. Makefile
  9. README.md
README.md

TWPT-server

TWPT-server is the code for the TW Power Tools gRPC server and its frontend.

This repository is under active development, and is not ready yet for production.