This repository has been archived by the owner on Jul 12, 2023. It is now read-only.
PHA stats: retrieve, store, and display stats from the key sever #1512
Labels
kind/enhancement
New feature or feature request.
TL;DR
The key sever now collects metrics on publish requests and has an API for retrieval of that information
Design
Proposal
This must be opt-in (default off). There must be a disclaimer that this should be covered in the privacy policy for the PHAs app in terms of operational metrics that may be collected sever side and displayed in aggregate only, not tied to any individual.
New setting for the key server audience value and key sever to retrieve from. These should be system level setting w/ realm level override available (only needed in some scenarios)
New periodic job to update stats for all realms that have this enabled. Once an hour, all enabled realms should mint the appropriate JWT (using the active verification certificate key) and call the
/v1/stats
API on the key server. Any data retrieved should replace what is in local storage. The verification server is however free to retain data longer (up to 30d).Display of the new information to PHA authorized users
/assign @sethvargo
The text was updated successfully, but these errors were encountered: