Table of Contents

Class DeploymentSecretInfo

Namespace
FishMMO.Database.Data
Assembly
FishMMO-DB.dll

What is known about a deployment secret, without the secret.

public sealed class DeploymentSecretInfo
Inheritance
DeploymentSecretInfo
Inherited Members

Remarks

There is deliberately no value on this type, and there must never be one. It exists so that an operator can see which secrets a deployment has, how long they have been there, and whether anything required is missing — questions that can all be answered without the material itself. A field holding the value would put every key the shard depends on one serialization mistake away from a browser, and the panel has no use for it that would justify that.

Properties

CreatedUtc

When it was first written.

public DateTime CreatedUtc { get; set; }

Property Value

DateTime

Key

The row key, such as totp_master_kek.

public string Key { get; set; }

Property Value

string

UpdatedUtc

When it last changed, which is when it was last rotated.

public DateTime UpdatedUtc { get; set; }

Property Value

DateTime

ValueLength

How many characters the stored value has.

public int ValueLength { get; set; }

Property Value

int

Remarks

A length is not the secret. It is here because a truncated or empty key is a real failure mode with no other symptom until something tries to use it.