-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Fleet] RBAC - Make upgrade agent APIs space aware #190069
Merged
jillguyonnet
merged 15 commits into
elastic:main
from
jillguyonnet:fleet/185040-rbac-agents-write-api-3
Aug 19, 2024
Merged
Changes from 5 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
0a70588
[Fleet] Make upgrade agent APIs space aware
jillguyonnet d2cff5d
Refactor and add reassign endpoints
jillguyonnet 0c26e88
Fix space id in batch functions
jillguyonnet 4f7c2e7
remove tmp comment
jillguyonnet 25636c4
Fix tests
jillguyonnet d7ee85b
Add reassign action namespaces
jillguyonnet bb3ee1e
Merge branch 'main' of github.com:elastic/kibana into fleet/185040-rb…
nchaulet cc50db2
Fix test batch
nchaulet 74a772a
Fix tests
nchaulet 903eb64
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine 5d3fe24
fix types
nchaulet 1ebcc3e
Merge branch 'main' of github.com:elastic/kibana into fleet/185040-rb…
nchaulet f4e6738
fix after merging main
nchaulet a69ea1b
fix unit tests
nchaulet ad0195e
Merge branch 'main' into fleet/185040-rbac-agents-write-api-3
elasticmachine 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
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
5 changes: 0 additions & 5 deletions
5
...agent_id}@actions@{action_id}@cancel.yaml → ...hs/agents@actions@{action_id}@cancel.yaml
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 |
---|---|---|
@@ -1,9 +1,4 @@ | ||
parameters: | ||
- schema: | ||
type: string | ||
name: agentId | ||
in: path | ||
required: true | ||
- schema: | ||
type: string | ||
name: actionId | ||
|
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
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.
@nchaulet What do you think of this change? I realised that a lot of bulk endpoints were calling
getAgentsById
and then checkingisAgentInNamespace
on each agent. With this,getAgentsById
directly adds a namespace filter in the ES query. The downside is we lose the more specific "agent not in namespace" error message.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.
it seems okay to me 👍