Class PlatformSecretsController
- Namespace
- FishMMO.ControlPanel.Controllers
- Assembly
- FishMMO-ControlPanel.dll
An inventory of the deployment secrets: which exist, how old they are, what they protect.
[ApiController]
[Route("api/platform/secrets")]
public sealed class PlatformSecretsController : ControllerBase
- Inheritance
-
PlatformSecretsController
- Inherited Members
Remarks
No secret value is readable here, and there is no rotation. Both omissions are deliberate and neither is an oversight.
On values: the panel has no use for the material that would justify putting every
key the shard depends on one serialization mistake away from a browser. The read goes
through FetchInventoryAsync, whose projection does not name the value column, so
the material never enters this process at all — as opposed to being fetched and then
carefully not sent.
On rotation: these three keys do not rotate alike, and the machinery that knows
how lives in the LoginServer and the installer rather than here.
totp_master_kek encrypts every enrolled TOTP secret; replacing it without
re-encrypting them locks every player out of two-factor permanently, and no undo exists
because the old key is gone. signing_key_kek has an atomic swap path in the
LoginServer that coordinates with a running server, which a web request cannot join.
A button here would be a one-click, irreversible shard outage, and its presence would
imply somebody had made it safe.
What this page is for is the question an operator actually has at three in the morning: is the key there, and is it the right shape. A missing or truncated key has no other symptom until something tries to use it and fails somewhere unrelated.
Constructors
PlatformSecretsController(IDeploymentSecretService, ILogger<PlatformSecretsController>)
public PlatformSecretsController(IDeploymentSecretService secrets, ILogger<PlatformSecretsController> log)
Parameters
secretsIDeploymentSecretServicelogILogger<PlatformSecretsController>
Methods
Inventory()
The inventory. Never a value.
[HttpGet]
[Authorize(Policy = "Operator")]
public Task<IActionResult> Inventory()