Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor role descriptor parsing #107430

Merged

Commits on Apr 12, 2024

  1. Refactor role descriptor parsing

    The method for `RoleDescriptor` parsing is becoming more complex due to
    its usage being shared between API keys, file-based and native roles.
    In some cases we allow 2.X format, in others we disallow
    restrictions. Having a single method with multiple boolean flags that
    control inclusion/exclusion of fields is becoming hard to extend.
    This refactoring aims to allow easier introduction of new fields that
    should be conditionally supported in some cases but not others.
    One of such cases is introduction of `description` field that should only
    be supported for file-based and native roles but not for roles embedded
    in API keys.
    slobodanadamovic committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    36a3e5c View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2024

  1. Merge branch 'main' of github.com:elastic/elasticsearch into sa-refac…

    …tor-role-parsing
    
    # Conflicts:
    #	x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authz/store/FileRolesStore.java
    slobodanadamovic committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    621959b View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. Configuration menu
    Copy the full SHA
    22f1db0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    519875c View commit details
    Browse the repository at this point in the history
  3. nit: method naming

    slobodanadamovic committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    f72ad51 View commit details
    Browse the repository at this point in the history