Skip to content

Authentication and Authorization for feast serving #823

Closed

Description

@jmelinav

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.

Activity

  1. jmelinav commented on Jun 25, 2020

    @jmelinav
    CollaboratorAuthor

    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.

  2. woop commented on Jun 25, 2020

    @woop
    Member

    Sounds good. I think it would be easier to evaluate this refactor once you have submitted a PR, but the idea seems fine.

  3. mrzzy commented on Jul 8, 2020

    @mrzzy
    Collaborator

    Working on getting Authentication (only) working on Feast Serving.

  4. jmelinav commented on Jul 8, 2020

    @jmelinav
    CollaboratorAuthor

    Working on getting Authentication (only) working on Feast Serving.

    @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.

  5. woop commented on Jul 8, 2020

    @woop
    Member

    @jmelinav also not the changes here #864

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions