allocator: fix the debug UI

The debug UI is broken because the handler now expects both the instance
and mount name (and associated HMAC) to be present in the request.
However, links generated by the debug browser code only fill in the
mount name parameter.  Rather than change the debug browser code to pass
the instance name, this CL figures out ownership based on the mount name
and the email from the login cookie.  It expands the cache to hold all
instances belonging to a given email, and uses that cache both to look
up ownership by instance name or by mount name.  One advantage is that
once a given email's cache entry is refreshed, all their instances will
result in quick cache hits.

Independently, increase cookie validity to 1 week.

Change-Id: Id92caad1496d4519022d661aadb680dff53c554f
4 files changed
tree: ad507c672dbbbdae96222031b78b830148eb9da4
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTING.md
  11. CONTRIBUTORS
  12. envvar.go
  13. envvar_test.go
  14. LICENSE
  15. PATENTS
  16. README.md
  17. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.