kubernetes.aio.client.models.v1beta1_pod_certificate_request_spec module

Kubernetes

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501

The version of the OpenAPI document: release-1.36 Generated by: https://openapi-generator.tech

class kubernetes.aio.client.models.v1beta1_pod_certificate_request_spec.V1beta1PodCertificateRequestSpec(max_expiration_seconds=None, node_name=None, node_uid=None, pkix_public_key=None, pod_name=None, pod_uid=None, proof_of_possession=None, service_account_name=None, service_account_uid=None, signer_name=None, stub_pkcs10_request=None, unverified_user_annotations=None, local_vars_configuration=None)

Bases: object

NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech

Do not edit the class manually.

attribute_map = {'max_expiration_seconds': 'maxExpirationSeconds', 'node_name': 'nodeName', 'node_uid': 'nodeUID', 'pkix_public_key': 'pkixPublicKey', 'pod_name': 'podName', 'pod_uid': 'podUID', 'proof_of_possession': 'proofOfPossession', 'service_account_name': 'serviceAccountName', 'service_account_uid': 'serviceAccountUID', 'signer_name': 'signerName', 'stub_pkcs10_request': 'stubPKCS10Request', 'unverified_user_annotations': 'unverifiedUserAnnotations'}
property max_expiration_seconds

Gets the max_expiration_seconds of this V1beta1PodCertificateRequestSpec. # noqa: E501

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. # noqa: E501

Returns:

The max_expiration_seconds of this V1beta1PodCertificateRequestSpec. # noqa: E501

Return type:

int

property node_name

Gets the node_name of this V1beta1PodCertificateRequestSpec. # noqa: E501

nodeName is the name of the node the pod is assigned to. # noqa: E501

Returns:

The node_name of this V1beta1PodCertificateRequestSpec. # noqa: E501

Return type:

str

property node_uid

Gets the node_uid of this V1beta1PodCertificateRequestSpec. # noqa: E501

nodeUID is the UID of the node the pod is assigned to. # noqa: E501

Returns:

The node_uid of this V1beta1PodCertificateRequestSpec. # noqa: E501

Return type:

str

openapi_types = {'max_expiration_seconds': 'int', 'node_name': 'str', 'node_uid': 'str', 'pkix_public_key': 'str', 'pod_name': 'str', 'pod_uid': 'str', 'proof_of_possession': 'str', 'service_account_name': 'str', 'service_account_uid': 'str', 'signer_name': 'str', 'stub_pkcs10_request': 'str', 'unverified_user_annotations': 'dict[str, str]'}
property pkix_public_key

Gets the pkix_public_key of this V1beta1PodCertificateRequestSpec. # noqa: E501

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. Deprecated: This field is replaced by StubPKCS10Request. If StubPKCS10Request is set, this field must be empty. Signer implementations should extract the public key from the StubPKCS10Request field. # noqa: E501

Returns:

The pkix_public_key of this V1beta1PodCertificateRequestSpec. # noqa: E501

Return type:

str

property pod_name

Gets the pod_name of this V1beta1PodCertificateRequestSpec. # noqa: E501

podName is the name of the pod into which the certificate will be mounted. # noqa: E501

Returns:

The pod_name of this V1beta1PodCertificateRequestSpec. # noqa: E501

Return type:

str

property pod_uid

Gets the pod_uid of this V1beta1PodCertificateRequestSpec. # noqa: E501

podUID is the UID of the pod into which the certificate will be mounted. # noqa: E501

Returns:

The pod_uid of this V1beta1PodCertificateRequestSpec. # noqa: E501

Return type:

str

property proof_of_possession

Gets the proof_of_possession of this V1beta1PodCertificateRequestSpec. # noqa: E501

A proof 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). Deprecated: This field is replaced by StubPKCS10Request. If StubPKCS10Request is set, this field must be empty. # noqa: E501

Returns:

The proof_of_possession of this V1beta1PodCertificateRequestSpec. # noqa: E501

Return type:

str

property service_account_name

Gets the service_account_name of this V1beta1PodCertificateRequestSpec. # noqa: E501

serviceAccountName is the name of the service account the pod is running as. # noqa: E501

Returns:

The service_account_name of this V1beta1PodCertificateRequestSpec. # noqa: E501

Return type:

str

property service_account_uid

Gets the service_account_uid of this V1beta1PodCertificateRequestSpec. # noqa: E501

serviceAccountUID is the UID of the service account the pod is running as. # noqa: E501

Returns:

The service_account_uid of this V1beta1PodCertificateRequestSpec. # noqa: E501

Return type:

str

property signer_name

Gets the signer_name of this V1beta1PodCertificateRequestSpec. # noqa: E501

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. # noqa: E501

Returns:

The signer_name of this V1beta1PodCertificateRequestSpec. # noqa: E501

Return type:

str

property stub_pkcs10_request

Gets the stub_pkcs10_request of this V1beta1PodCertificateRequestSpec. # noqa: E501

A PKCS#10 certificate signing request (DER-serialized) generated by Kubelet using the subject private key. Most signer implementations will ignore the contents of the CSR except to extract the subject public key. The API server automatically verifies the CSR signature during admission, so the signer does not need to repeat the verification. CSRs generated by kubelet are completely empty. The subject public 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. # noqa: E501

Returns:

The stub_pkcs10_request of this V1beta1PodCertificateRequestSpec. # noqa: E501

Return type:

str

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model

property unverified_user_annotations

Gets the unverified_user_annotations of this V1beta1PodCertificateRequestSpec. # noqa: E501

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. # noqa: E501

Returns:

The unverified_user_annotations of this V1beta1PodCertificateRequestSpec. # noqa: E501

Return type:

dict[str, str]