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
  • run_as (Optional[flytekit.models.core.security.Identity]) –

  • secrets (Optional[List[flytekit.models.core.security.Secret]]) –

  • tokens (Optional[List[flytekit.models.core.security.OAuth2TokenRequest]]) –

Return type

None

classmethod from_flyte_idl(pb2_object)[source]
Parameters

pb2_object (flyteidl.core.security_pb2.SecurityContext) –

Return type

flytekit.models.core.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.core.security.Identity] = None
secrets: Optional[List[flytekit.models.core.security.Secret]] = None
tokens: Optional[List[flytekit.models.core.security.OAuth2TokenRequest]] = None