flytekit.SecurityContext#

class flytekit.SecurityContext(run_as=None, secrets=None, tokens=None)[source]#

This is a higher level wrapper object that for the most part users shouldn’t have to worry about. You should be able to just use flytekit.Secret instead.

Methods

Parameters
Return type

None

classmethod from_flyte_idl(pb2_object)[source]#
Parameters

pb2_object (flyteidl.core.security_pb2.SecurityContext) –

Return type

flytekit.models.security.SecurityContext

short_string()#
Return type

Text

to_flyte_idl()[source]#
Return type

flyteidl.core.security_pb2.SecurityContext

verbose_string()#
Return type

Text

Attributes

is_empty#
run_as: Optional[flytekit.models.security.Identity] = None#
secrets: Optional[List[flytekit.models.security.Secret]] = None#
tokens: Optional[List[flytekit.models.security.OAuth2TokenRequest]] = None#