Package flyteidl.core
Class Security.Secret
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- flyteidl.core.Security.Secret
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Security.SecretOrBuilder,Serializable
- Enclosing class:
- Security
public static final class Security.Secret extends com.google.protobuf.GeneratedMessageV3 implements Security.SecretOrBuilder
Secret encapsulates information about the secret a task needs to proceed. An environment variable FLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if secrets are passed through environment variables. FLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets are passed through file mounts.
Protobuf typeflyteidl.core.Secret- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSecurity.Secret.BuilderSecret encapsulates information about the secret a task needs to proceed.static classSecurity.Secret.MountTypeProtobuf enumflyteidl.core.Secret.MountType-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description private static Security.SecretDEFAULT_INSTANCEprivate Objectgroup_static intGROUP_FIELD_NUMBERstatic intGROUP_VERSION_FIELD_NUMBERprivate ObjectgroupVersion_private Objectkey_static intKEY_FIELD_NUMBERprivate bytememoizedIsInitializedstatic intMOUNT_REQUIREMENT_FIELD_NUMBERprivate intmountRequirement_private static com.google.protobuf.Parser<Security.Secret>PARSERprivate static longserialVersionUID
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static Security.SecretgetDefaultInstance()Security.SecretgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetGroup()The name of the secret group where to find the key referenced below.com.google.protobuf.ByteStringgetGroupBytes()The name of the secret group where to find the key referenced below.StringgetGroupVersion()The group version to fetch.com.google.protobuf.ByteStringgetGroupVersionBytes()The group version to fetch.StringgetKey()The name of the secret to mount.com.google.protobuf.ByteStringgetKeyBytes()The name of the secret to mount.Security.Secret.MountTypegetMountRequirement()mount_requirement is optional.intgetMountRequirementValue()mount_requirement is optional.com.google.protobuf.Parser<Security.Secret>getParserForType()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Security.Secret.BuildernewBuilder()static Security.Secret.BuildernewBuilder(Security.Secret prototype)Security.Secret.BuildernewBuilderForType()protected Security.Secret.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Security.SecretparseDelimitedFrom(InputStream input)static Security.SecretparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Security.SecretparseFrom(byte[] data)static Security.SecretparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Security.SecretparseFrom(com.google.protobuf.ByteString data)static Security.SecretparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Security.SecretparseFrom(com.google.protobuf.CodedInputStream input)static Security.SecretparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Security.SecretparseFrom(InputStream input)static Security.SecretparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Security.SecretparseFrom(ByteBuffer data)static Security.SecretparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Security.Secret>parser()Security.Secret.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
GROUP_FIELD_NUMBER
public static final int GROUP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
group_
private volatile Object group_
-
GROUP_VERSION_FIELD_NUMBER
public static final int GROUP_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
groupVersion_
private volatile Object groupVersion_
-
KEY_FIELD_NUMBER
public static final int KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
key_
private volatile Object key_
-
MOUNT_REQUIREMENT_FIELD_NUMBER
public static final int MOUNT_REQUIREMENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
mountRequirement_
private int mountRequirement_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final Security.Secret DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<Security.Secret> PARSER
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getGroup
public String getGroup()
The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name. For AWS Secret Manager, this should be the name of the secret. +required
string group = 1;- Specified by:
getGroupin interfaceSecurity.SecretOrBuilder- Returns:
- The group.
-
getGroupBytes
public com.google.protobuf.ByteString getGroupBytes()
The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name. For AWS Secret Manager, this should be the name of the secret. +required
string group = 1;- Specified by:
getGroupBytesin interfaceSecurity.SecretOrBuilder- Returns:
- The bytes for group.
-
getGroupVersion
public String getGroupVersion()
The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones that do not support it. +optional
string group_version = 2;- Specified by:
getGroupVersionin interfaceSecurity.SecretOrBuilder- Returns:
- The groupVersion.
-
getGroupVersionBytes
public com.google.protobuf.ByteString getGroupVersionBytes()
The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones that do not support it. +optional
string group_version = 2;- Specified by:
getGroupVersionBytesin interfaceSecurity.SecretOrBuilder- Returns:
- The bytes for groupVersion.
-
getKey
public String getKey()
The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should match one of the keys inside the secret. For AWS Secret Manager, it's ignored. +optional
string key = 3;- Specified by:
getKeyin interfaceSecurity.SecretOrBuilder- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()
The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should match one of the keys inside the secret. For AWS Secret Manager, it's ignored. +optional
string key = 3;- Specified by:
getKeyBytesin interfaceSecurity.SecretOrBuilder- Returns:
- The bytes for key.
-
getMountRequirementValue
public int getMountRequirementValue()
mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail if the underlying key management system cannot satisfy that requirement. If not provided, the default location will depend on the key management system. +optional
.flyteidl.core.Secret.MountType mount_requirement = 4;- Specified by:
getMountRequirementValuein interfaceSecurity.SecretOrBuilder- Returns:
- The enum numeric value on the wire for mountRequirement.
-
getMountRequirement
public Security.Secret.MountType getMountRequirement()
mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail if the underlying key management system cannot satisfy that requirement. If not provided, the default location will depend on the key management system. +optional
.flyteidl.core.Secret.MountType mount_requirement = 4;- Specified by:
getMountRequirementin interfaceSecurity.SecretOrBuilder- Returns:
- The mountRequirement.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Security.Secret parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Security.Secret parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Security.Secret parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Security.Secret parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Security.Secret parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Security.Secret parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Security.Secret parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Security.Secret parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Security.Secret parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Security.Secret parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Security.Secret parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Security.Secret parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Security.Secret.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Security.Secret.Builder newBuilder()
-
newBuilder
public static Security.Secret.Builder newBuilder(Security.Secret prototype)
-
toBuilder
public Security.Secret.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Security.Secret.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Security.Secret getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Security.Secret> parser()
-
getParserForType
public com.google.protobuf.Parser<Security.Secret> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Security.Secret getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-