pub enum MintSource {
GithubApp(GithubApp),
AwsSts(AwsSts),
Gcp(Gcp),
}Expand description
source: { mint: { <provider>: … } }. Debug names the provider only.
Variants§
GithubApp(GithubApp)
A GitHub App installation access token (one hour, GitHub’s limit).
AwsSts(AwsSts)
AWS STS AssumeRole credentials with a session policy.
Gcp(Gcp)
A Google Cloud service account access token (generateAccessToken).
Implementations§
Source§impl MintSource
impl MintSource
Sourcepub fn files(&self) -> Vec<&str>
pub fn files(&self) -> Vec<&str>
The files the proxy reads the person’s own credential from: the
agent must be denied them (openmoat policy lint warns otherwise).
Sourcepub fn lifetime_secs(&self) -> u64
pub fn lifetime_secs(&self) -> u64
The lifetime asked for, in seconds; GitHub’s tokens always last an hour.
Sourcepub fn refresh_before_secs(&self) -> u64
pub fn refresh_before_secs(&self) -> u64
How long before the value expires a new one is minted, in seconds:
refresh_before, else 10 minutes for GitHub and a fifth of the
lifetime for the others.
Trait Implementations§
Source§impl Clone for MintSource
impl Clone for MintSource
Source§impl Debug for MintSource
impl Debug for MintSource
Source§impl<'de> Deserialize<'de> for MintSource
impl<'de> Deserialize<'de> for MintSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MintSource
Source§impl PartialEq for MintSource
impl PartialEq for MintSource
Source§impl Serialize for MintSource
impl Serialize for MintSource
impl StructuralPartialEq for MintSource
Auto Trait Implementations§
impl Forget for MintSource
impl Freeze for MintSource
impl Move for MintSource
impl RefUnwindSafe for MintSource
impl Send for MintSource
impl Sync for MintSource
impl Unpin for MintSource
impl UnsafeUnpin for MintSource
impl UnwindSafe for MintSource
Blanket Implementations§
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
Mutably borrows from an owned value. Read more