Zum Hauptinhalt springen

SecretStorageForm

Namespace: Meshmakers.Octo.Runtime.Contracts.Secrets

Storage form of a Secret value as administrators see it (secrets overview, handover §7). Never the value.

public enum SecretStorageForm

Inheritance Object → ValueType → Enum → SecretStorageForm
Implements IComparable, ISpanFormattable, IFormattable, IConvertible

Fields​

NameValueDescription
NotSet0null / missing, an empty value, or a legacy placeholder still waiting for the migration.
Plaintext1Legacy clear text still stored (before the encrypt sweep). A pending (unsaved input) value is reported as this form as well.
EncV12Legacy enc:v1 string (instance key).
EncV23Protected, key id in the key ring.
KeyMissing4Protected, key id NOT in the key ring (kept; reads as not set + key missing). Also a legacy enc:v1 string on a host without the legacy key (key id SecretValueStates.LegacyV1KeyId).
Corrupt5A stored value that can never be read: an enc:v2 envelope stored as a legacy string (SecretValueStates.IsCorrupt(RtSecretValue)). Reads as not set, warning logged.