-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Introduce role description field #107088
Merged
slobodanadamovic
merged 68 commits into
elastic:main
from
slobodanadamovic:sa-add-role-description
May 8, 2024
Merged
Introduce role description field #107088
Changes from 62 commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
248c615
Introduce role description field
slobodanadamovic 9b540d0
Update docs/changelog/107088.yaml
slobodanadamovic 42dbaab
Fix serialization issue
slobodanadamovic ad6e48f
Merge branch 'sa-add-role-description' of github.com:slobodanadamovic…
slobodanadamovic fca71bb
Fix failing bwc test
slobodanadamovic 906d537
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic ca60fb3
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic b22fe9a
Refactor role descriptor parsing
slobodanadamovic 546602f
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic 23d3396
Fix failing tests (API key roles do not support description field)
slobodanadamovic 36a3e5c
Refactor role descriptor parsing
slobodanadamovic 621959b
Merge branch 'main' of github.com:elastic/elasticsearch into sa-refac…
slobodanadamovic c3ebf46
Merge branch 'sa-refactor-role-parsing' of github.com:slobodanadamovi…
slobodanadamovic ce3baab
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic c2e5a36
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic b2a9d7d
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic 48b069f
Fix failing API key tests
slobodanadamovic c3ed4ba
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic 9dbcfaa
Fix another failing test
slobodanadamovic e74a90d
spotless
slobodanadamovic 8da5db4
Relax cross cluster role parsing - we have checks in place
slobodanadamovic 9437d19
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic 082c0c1
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic ab65161
fix npe
slobodanadamovic 83f66ba
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic 168fa09
Add missing role description mapping
slobodanadamovic 59631a1
Do not persist limited-by role descriptions
slobodanadamovic 9ab9409
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic eaeeaf8
Add API key tests
slobodanadamovic 6ba46b5
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic ef744de
More serialization/deserialization tests
slobodanadamovic 8b8bf29
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic 2974c61
Validate and test file roles
slobodanadamovic 2dc0203
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic 4b41525
Test invalid role descriptions
slobodanadamovic 38556c8
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic 526d4be
Test role creation and update with description
slobodanadamovic 6e2e69d
add bwc tests
slobodanadamovic a18bff8
fix bwc test
slobodanadamovic da76594
avoid failing when same role is created in 2/3 upgrade test
slobodanadamovic 825c840
Add YAML test
slobodanadamovic 4de6d35
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic 7259f4d
Bump main .security index's mapping format version
slobodanadamovic dc51317
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic d4bd948
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic dd893a2
Add missing "priorSystemIndexDescriptor"
slobodanadamovic 113d83f
Fix SecurityIndexManagerTests
slobodanadamovic 72bbd76
Define constants for .security index mapping versions
slobodanadamovic 6aa7c12
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic 9368be1
Lower the max description length to 1000 chars
slobodanadamovic e04e992
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic 05aa831
Fix failing tests
slobodanadamovic 35a80dc
TransportVersions.SECURITY_ROLE_DESCRIPTION.toReleaseVersion
slobodanadamovic 1fb938a
nit: comment why description is never send across clusters
slobodanadamovic be602ab
Implement VersionId and dry up getSecurityMainIndexDescriptor
slobodanadamovic 491b410
remove comment
slobodanadamovic 52fd232
Remove unnecessary INTERNAL_MAIN_INDEX_MAPPINGS_FORMAT constant
slobodanadamovic 619e335
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic 981bec3
Update security index mapping version to include remote_cluster
slobodanadamovic e20ca64
Fix issue with overloaded createRole method
slobodanadamovic 5ceb492
Fix failing test
slobodanadamovic 981b203
Another test fix
slobodanadamovic 4507041
remove "transport" from exception message
slobodanadamovic e768c8b
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic 0c56fef
null -> empty string
slobodanadamovic 990d9c3
Fix toString test
slobodanadamovic 91ccbfb
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic 6a5c379
Merge branch 'main' of github.com:elastic/elasticsearch into sa-add-r…
slobodanadamovic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 107088 | ||
summary: Introduce role description field | ||
area: Authorization | ||
type: enhancement | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,7 @@ public class SystemUser extends InternalUser { | |
null, | ||
null, | ||
null, | ||
null, | ||
null | ||
); | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I have slight preference to check for null and if null then set to empty string. It can eliminate a class of problems and things to check and better matches the other @ Nullable -> non-null class members.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was undecided here and went with
null
. Agreed, using empty string is more consistent and simplifies the checks. I will change this.