## PodCertificateRequestSpec

# Struct PodCertificateRequestSpec

Source

    pub struct PodCertificateRequestSpec {
        pub max_expiration_seconds: Option<i32>,
        pub node_name: String,
        pub node_uid: String,
        pub pkix_public_key: ByteString,
        pub pod_name: String,
        pub pod_uid: String,
        pub proof_of_possession: ByteString,
        pub service_account_name: String,
        pub service_account_uid: String,
        pub signer_name: String,
        pub unverified_user_annotations: Option<BTreeMap<String, String>>,
    }

Expand description

PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation.

## Fields§

§`max_expiration_seconds: Option<i32>`

maxExpirationSeconds is the maximum lifetime permitted for the certificate.

If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour). The maximum allowable value is 7862400 (91 days).

The signer implementation is then free to issue a certificate with any lifetime shorter than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour). This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours.

§`node_name: String`

nodeName is the name of the node the pod is assigned to.

§`node_uid: String`

nodeUID is the UID of the node the pod is assigned to.

§`pkix_public_key: ByteString`

pkixPublicKey is the PKIX-serialized public key the signer will issue the certificate to.

The key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future.

Signer implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of “Denied” and a reason of “UnsupportedKeyType”. It may also suggest a key type that it does support in the message field.

§`pod_name: String`

podName is the name of the pod into which the certificate will be mounted.

§`pod_uid: String`

podUID is the UID of the pod into which the certificate will be mounted.

§`proof_of_possession: ByteString`

proofOfPossession proves that the requesting kubelet holds the private key corresponding to pkixPublicKey.

It is contructed by signing the ASCII bytes of the pod’s UID using `pkixPublicKey`.

kube-apiserver validates the proof of possession during creation of the PodCertificateRequest.

If the key is an RSA key, then the signature is over the ASCII bytes of the pod UID, using RSASSA-PSS from RFC 8017 (as implemented by the golang function crypto/rsa.SignPSS with nil options).

If the key is an ECDSA key, then the signature is as described by [SEC 1, Version 2.0](https://www.secg.org/sec1-v2.pdf) (as implemented by the golang library function crypto/ecdsa.SignASN1)

If the key is an ED25519 key, the the signature is as described by the [ED25519 Specification](https://ed25519.cr.yp.to/) (as implemented by the golang library crypto/ed25519.Sign).

§`service_account_name: String`

serviceAccountName is the name of the service account the pod is running as.

§`service_account_uid: String`

serviceAccountUID is the UID of the service account the pod is running as.

§`signer_name: String`

signerName indicates the requested signer.

All signer names beginning with `kubernetes.io` are reserved for use by the Kubernetes project. There is currently one well-known signer documented by the Kubernetes project, `kubernetes.io/kube-apiserver-client-pod`, which will issue client certificates understood by kube-apiserver. It is currently unimplemented.

§`unverified_user_annotations: Option<BTreeMap<String, String>>`

unverifiedUserAnnotations allow pod authors to pass additional information to the signer implementation. Kubernetes does not restrict or validate this metadata in any way.

Entries are subject to the same validation as object metadata annotations, with the addition that all keys must be domain-prefixed. No restrictions are placed on values, except an overall size limitation on the entire field.

Signers should document the keys and values they support. Signers should deny requests that contain keys they do not recognize.

## Trait Implementations§

Source§

### impl Clone for PodCertificateRequestSpec

Source§

#### fn clone(&self) -> PodCertificateRequestSpec

Returns a duplicate of the value. Read more
1.0.0 · Source§

#### fn clone_from(&mut self, source: &Self)

Performs copy-assignment from `source`. Read more
Source§

### impl Debug for PodCertificateRequestSpec

Source§

#### fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

### impl DeepMerge for PodCertificateRequestSpec

Source§

#### fn merge_from(&mut self, other: Self)

Merge `other` into `self`.
Source§

### impl Default for PodCertificateRequestSpec

Source§

#### fn default() -> PodCertificateRequestSpec

Returns the “default value” for a type. Read more
Source§

### impl<'de> Deserialize<'de> for PodCertificateRequestSpec

Source§

#### fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

### impl PartialEq for PodCertificateRequestSpec

Source§

#### fn eq(&self, other: &PodCertificateRequestSpec) -> bool

Tests for `self` and `other` values to be equal, and is used by `==`.
1.0.0 · Source§

#### fn ne(&self, other: &Rhs) -> bool

Tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

### impl Serialize for PodCertificateRequestSpec

Source§

#### fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

### impl StructuralPartialEq for PodCertificateRequestSpec

## Auto Trait Implementations§

§

### impl Freeze for PodCertificateRequestSpec

§

### impl RefUnwindSafe for PodCertificateRequestSpec

§

### impl Send for PodCertificateRequestSpec

§

### impl Sync for PodCertificateRequestSpec

§

### impl Unpin for PodCertificateRequestSpec

§

### impl UnwindSafe for PodCertificateRequestSpec

## Blanket Implementations§

Source§

### impl<T> Any for T
where T: 'static + ?Sized,

Source§

#### fn type_id(&self) -> TypeId

Gets the `TypeId` of `self`. Read more
Source§

### impl<T> Borrow<T> for T
where T: ?Sized,

Source§

#### fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

### impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

#### fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

### impl<T> CloneToUninit for T
where T: Clone,

Source§

#### unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (`clone_to_uninit`)
Performs copy-assignment from `self` to `dest`. Read more
Source§

### impl<T> From<T> for T

Source§

#### fn from(t: T) -> T

Returns the argument unchanged.

Source§

### impl<T, U> Into<U> for T
where U: From<T>,

Source§

#### fn into(self) -> U

Calls `U::from(self)`.

That is, this conversion is whatever the implementation of `From<T> for U` chooses to do.

Source§

### impl<T> ToOwned for T
where T: Clone,

Source§

#### type Owned = T

The resulting type after obtaining ownership.
Source§

#### fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

#### fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

### impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

#### type Error = Infallible

The type returned in the event of a conversion error.
Source§

#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

### impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

#### type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

### impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,