You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Authentication and Authorization for feast serving #823
Is your feature request related to a problem? Please describe.
Currently user authentication and authorization limits access to Feast core(#793 ), but doesn't secure feast serving. Since feast client connects to core and serving directly, authentication and authorization on feast serving is a necessary feature. Describe the solution you'd like
The PR #793, implements jwt authenticator and Keto authorizer for feast core. Same implementation will be done on the feast serving. Instead of replicating the code, Authorization and authentication will be moved separate module feast-auth, which will be included as a dependency in feast core and feast serving. Rest of the configuration will remain same as described in the documentation for #793. Python sdk will be updated to use secure channel to connect to feast serving.
Assumptions:
User authentication and authorization only applies to Feast Core and serving not ingestion.
Out of scope:
Go and java clients.
Describe alternatives you've considered
Refer to issue #793 for the alternatives considered.
As part of this, I will be moving the below files into feast-auth package,
/src/main/java/feast/core/config/SecurityConfig.java
/src/main/java/feast/core/auth/authentication/DefaultJwtAuthenticationProvider.java
/src/main/java/feast/core/auth/authorization/AuthorizationProvider.java
/src/main/java/feast/core/auth/authorization/AuthorizationResult.java
/src/main/java/feast/core/auth/authorization/Keto/KetoAuthorizationProvider.java SecurityProperties class which is in /src/main/java/feast/core/config/FeastProperties.java
Also I feel the generic validators can be moved to the feast-common package since it is used in core, will be used in auth and may be useful in other modules too. So for now I will move src/main/java/feast/core/validators/OneOfStrings.java validator into feast-common. Let me know your thoughts. I will update the list if I come across other files that needs to be moved.
Activity
jmelinav commentedon Jun 25, 2020
As part of this, I will be moving the below files into feast-auth package,
/src/main/java/feast/core/config/SecurityConfig.java
/src/main/java/feast/core/auth/authentication/DefaultJwtAuthenticationProvider.java
/src/main/java/feast/core/auth/authorization/AuthorizationProvider.java
/src/main/java/feast/core/auth/authorization/AuthorizationResult.java
/src/main/java/feast/core/auth/authorization/Keto/KetoAuthorizationProvider.java
SecurityPropertiesclass which is in /src/main/java/feast/core/config/FeastProperties.javaAlso I feel the generic validators can be moved to the feast-common package since it is used in core, will be used in auth and may be useful in other modules too. So for now I will move src/main/java/feast/core/validators/OneOfStrings.java validator into feast-common. Let me know your thoughts. I will update the list if I come across other files that needs to be moved.
woop commentedon Jun 25, 2020
Sounds good. I think it would be easier to evaluate this refactor once you have submitted a PR, but the idea seems fine.
mrzzy commentedon Jul 8, 2020
Working on getting Authentication (only) working on Feast Serving.
jmelinav commentedon Jul 8, 2020
@mrzzy I'm almost ready with for the PR for authentication. I'm working on authorization in the same PR. I will create a wip PR.
woop commentedon Jul 8, 2020
@jmelinav also not the changes here #864