pub enum CeremonyMode {
HardwarePiv {
token: DetectedToken,
slot: String,
},
HardwareAgeRecipient {
token: DetectedToken,
},
SoftwareDevGrade,
}Expand description
How the deployment root will be protected.
Variants§
HardwarePiv
Ed25519 root is generated in host memory, imported into a PIV slot for token-gated signing (PIN + touch). The recovery seed is stored in the age-encrypted authority bundle — the key is NOT hardware-confined.
HardwareAgeRecipient
Token decrypts the authority bundle; the bundle is briefly in memory.
Fields
token: DetectedTokenSoftwareDevGrade
Software recipients only. Fit for development, nothing else.
Implementations§
Source§impl CeremonyMode
impl CeremonyMode
pub fn is_dev_grade(&self) -> bool
pub fn grade_label(&self) -> &'static str
Sourcepub fn ed25519_confined_to_hardware(&self) -> bool
pub fn ed25519_confined_to_hardware(&self) -> bool
Whether the Ed25519 root key is truly confined to the hardware token
and cannot be extracted. In the current ceremony the key is generated in
host memory, imported into the PIV slot, and its seed is stored in the
age-encrypted authority bundle — so any bundle recipient can reconstruct
the software signer. This method returns false to reflect that reality
honestly in the audit record.
Sourcepub fn token_gated_signing(&self) -> bool
pub fn token_gated_signing(&self) -> bool
True when the convenience signing path is token-gated (requires PIN + touch on the hardware token). This is what the PIV mode actually provides; it does not imply the seed is confined.
pub fn token(&self) -> Option<&DetectedToken>
Trait Implementations§
Source§impl Clone for CeremonyMode
impl Clone for CeremonyMode
Source§fn clone(&self) -> CeremonyMode
fn clone(&self) -> CeremonyMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CeremonyMode
impl Debug for CeremonyMode
Source§impl PartialEq for CeremonyMode
impl PartialEq for CeremonyMode
Source§fn eq(&self, other: &CeremonyMode) -> bool
fn eq(&self, other: &CeremonyMode) -> bool
self and other values to be equal, and is used by ==.impl Eq for CeremonyMode
impl StructuralPartialEq for CeremonyMode
Auto Trait Implementations§
impl Freeze for CeremonyMode
impl RefUnwindSafe for CeremonyMode
impl Send for CeremonyMode
impl Sync for CeremonyMode
impl Unpin for CeremonyMode
impl UnsafeUnpin for CeremonyMode
impl UnwindSafe for CeremonyMode
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request