MCPcopy Index your code
hub / github.com/feast-dev/feast / init_security_manager

Function init_security_manager

sdk/python/feast/permissions/server/utils.py:66–84  ·  view source on GitHub ↗

Initialize the global security manager. Must be invoked at Feast server initialization time to create the `SecurityManager` instance. Args: auth_type: The authorization manager type. registry: The feature store registry.

(auth_type: AuthManagerType, fs: "feast.FeatureStore")

Source from the content-addressed store, hash-verified

64
65
66def init_security_manager(auth_type: AuthManagerType, fs: "feast.FeatureStore"):
67 """
68 Initialize the global security manager.
69 Must be invoked at Feast server initialization time to create the `SecurityManager` instance.
70
71 Args:
72 auth_type: The authorization manager type.
73 registry: The feature store registry.
74 """
75 if auth_type == AuthManagerType.NONE:
76 no_security_manager()
77 else:
78 # TODO permissions from registry
79 set_security_manager(
80 SecurityManager(
81 project=fs.project,
82 registry=fs.registry,
83 )
84 )
85
86
87def init_auth_manager(

Callers 4

start_serverFunction · 0.90
_init_auth_managerFunction · 0.90
start_serverFunction · 0.90
_init_authMethod · 0.90

Calls 3

no_security_managerFunction · 0.90
set_security_managerFunction · 0.90
SecurityManagerClass · 0.90

Tested by

no test coverage detected