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 (Identity | None)

  • secrets (List[Secret] | None)

  • tokens (List[OAuth2TokenRequest] | None)

classmethod from_flyte_idl(pb2_object)[source]
Parameters:

pb2_object (SecurityContext)

Return type:

SecurityContext

serialize_to_string()
Return type:

str

short_string()
Return type:

Text

to_flyte_idl()[source]
Return type:

SecurityContext

verbose_string()
Return type:

Text

Attributes

is_empty
run_as: Identity | None = None
secrets: List[Secret] | None = None
tokens: List[OAuth2TokenRequest] | None = None