Skip to content

Adding API Key Wildcard Search#221959

Merged
SiddharthMantri merged 13 commits intomainfrom
API-Key-Wildcard-Search
Oct 2, 2025
Merged

Adding API Key Wildcard Search#221959
SiddharthMantri merged 13 commits intomainfrom
API-Key-Wildcard-Search

Conversation

@Eamonn-OL
Copy link
Contributor

@Eamonn-OL Eamonn-OL commented May 29, 2025

Adding ability to do partial matches/searches in the API Key section of the Management Console.

1000042133.mp4
Adding ability to do partial matches/searches in the API Key section of the Management Console.
@Eamonn-OL Eamonn-OL requested a review from a team as a code owner May 29, 2025 16:13
@legrego legrego requested a review from SiddharthMantri May 29, 2025 16:16
@legrego legrego added Team:Security Platform Security: Auth, Users, Roles, Spaces, Audit Logging, etc t// release_note:skip Skip the PR/issue when compiling release notes backport:all-open Backport to all branches that could still receive a release labels May 29, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-security (Team:Security)

@legrego legrego added release_note:fix Feature:Users/Roles/API Keys and removed release_note:skip Skip the PR/issue when compiling release notes labels May 29, 2025
Copy link
Contributor

@SiddharthMantri SiddharthMantri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested the changes and the functionality works as expected. @Eamonn-OL Is there a related issue for this? I would like to know, from a product perspective, if this can also be enhanced to support wildcard search on the owner (username) field - the default behavior of the previous in-memory table before we switched to using server side queries

@Eamonn-OL
Copy link
Contributor Author

@SiddharthMantri sorry for the delay! I was advised that there is an issue: #195795

@SiddharthMantri
Copy link
Contributor

@SiddharthMantri sorry for the delay! I was advised that there is an issue: #195795

Ooh, that's mine! In that case, can we update this PR to include wildcard search on owner name as well, please?

@SiddharthMantri
Copy link
Contributor

@elasticmachine merge upstream

@SiddharthMantri
Copy link
Contributor

Unskipped UI test and added a change for searching by username

Screen.Recording.2025-09-30.at.13.47.06.mov
@SiddharthMantri SiddharthMantri requested review from a team and SiddharthMantri September 30, 2025 11:50
@SiddharthMantri SiddharthMantri self-assigned this Oct 1, 2025
@elasticmachine
Copy link
Contributor

⏳ Build in-progress, with failures

Failed CI Steps

History

cc @SiddharthMantri

@SiddharthMantri
Copy link
Contributor

@elasticmachine merge upstream

Copy link
Contributor

@kc13greiner kc13greiner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@SiddharthMantri SiddharthMantri merged commit 7aa44eb into main Oct 2, 2025
12 checks passed
@SiddharthMantri SiddharthMantri deleted the API-Key-Wildcard-Search branch October 2, 2025 11:09
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.18, 8.19, 9.0, 9.1

https://github.com/elastic/kibana/actions/runs/18191248879

kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Oct 2, 2025
Adding ability to do partial matches/searches in the API Key section of
the Management Console.

https://github.com/user-attachments/assets/02e9c44f-101f-44e3-b7cb-dc731646d140

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Sid <siddharthmantri1@gmail.com>
(cherry picked from commit 7aa44eb)
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Oct 2, 2025
Adding ability to do partial matches/searches in the API Key section of
the Management Console.

https://github.com/user-attachments/assets/02e9c44f-101f-44e3-b7cb-dc731646d140

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Sid <siddharthmantri1@gmail.com>
(cherry picked from commit 7aa44eb)
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Oct 2, 2025
Adding ability to do partial matches/searches in the API Key section of
the Management Console.

https://github.com/user-attachments/assets/02e9c44f-101f-44e3-b7cb-dc731646d140

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Sid <siddharthmantri1@gmail.com>
(cherry picked from commit 7aa44eb)
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Oct 2, 2025
Adding ability to do partial matches/searches in the API Key section of
the Management Console.

https://github.com/user-attachments/assets/02e9c44f-101f-44e3-b7cb-dc731646d140

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Sid <siddharthmantri1@gmail.com>
(cherry picked from commit 7aa44eb)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.18
8.19
9.0
9.1

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 2, 2025
# Backport

This will backport the following commits from `main` to `9.1`:
- [Adding API Key Wildcard Search
(#221959)](#221959)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT
[{"author":{"name":"Eamonn-OL","email":"119305140+Eamonn-OL@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-10-02T11:09:41Z","message":"Adding
API Key Wildcard Search (#221959)\n\nAdding ability to do partial
matches/searches in the API Key section of\nthe Management
Console.\n\n\n\nhttps://github.com/user-attachments/assets/02e9c44f-101f-44e3-b7cb-dc731646d140\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\nCo-authored-by: Sid
<siddharthmantri1@gmail.com>","sha":"7aa44ebe60393c5eba50881cb6646d78ccfb09b0","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Security","Feature:Users/Roles/API
Keys","backport:all-open","v9.2.0"],"title":"Adding API Key Wildcard
Search","number":221959,"url":"https://github.com/elastic/kibana/pull/221959","mergeCommit":{"message":"Adding
API Key Wildcard Search (#221959)\n\nAdding ability to do partial
matches/searches in the API Key section of\nthe Management
Console.\n\n\n\nhttps://github.com/user-attachments/assets/02e9c44f-101f-44e3-b7cb-dc731646d140\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\nCo-authored-by: Sid
<siddharthmantri1@gmail.com>","sha":"7aa44ebe60393c5eba50881cb6646d78ccfb09b0"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/221959","number":221959,"mergeCommit":{"message":"Adding
API Key Wildcard Search (#221959)\n\nAdding ability to do partial
matches/searches in the API Key section of\nthe Management
Console.\n\n\n\nhttps://github.com/user-attachments/assets/02e9c44f-101f-44e3-b7cb-dc731646d140\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\nCo-authored-by: Sid
<siddharthmantri1@gmail.com>","sha":"7aa44ebe60393c5eba50881cb6646d78ccfb09b0"}}]}]
BACKPORT-->

Co-authored-by: Eamonn-OL <119305140+Eamonn-OL@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Sid <siddharthmantri1@gmail.com>
kibanamachine added a commit that referenced this pull request Oct 2, 2025
# Backport

This will backport the following commits from `main` to `9.0`:
- [Adding API Key Wildcard Search
(#221959)](#221959)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT
[{"author":{"name":"Eamonn-OL","email":"119305140+Eamonn-OL@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-10-02T11:09:41Z","message":"Adding
API Key Wildcard Search (#221959)\n\nAdding ability to do partial
matches/searches in the API Key section of\nthe Management
Console.\n\n\n\nhttps://github.com/user-attachments/assets/02e9c44f-101f-44e3-b7cb-dc731646d140\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\nCo-authored-by: Sid
<siddharthmantri1@gmail.com>","sha":"7aa44ebe60393c5eba50881cb6646d78ccfb09b0","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Security","Feature:Users/Roles/API
Keys","backport:all-open","v9.2.0"],"title":"Adding API Key Wildcard
Search","number":221959,"url":"https://github.com/elastic/kibana/pull/221959","mergeCommit":{"message":"Adding
API Key Wildcard Search (#221959)\n\nAdding ability to do partial
matches/searches in the API Key section of\nthe Management
Console.\n\n\n\nhttps://github.com/user-attachments/assets/02e9c44f-101f-44e3-b7cb-dc731646d140\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\nCo-authored-by: Sid
<siddharthmantri1@gmail.com>","sha":"7aa44ebe60393c5eba50881cb6646d78ccfb09b0"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/221959","number":221959,"mergeCommit":{"message":"Adding
API Key Wildcard Search (#221959)\n\nAdding ability to do partial
matches/searches in the API Key section of\nthe Management
Console.\n\n\n\nhttps://github.com/user-attachments/assets/02e9c44f-101f-44e3-b7cb-dc731646d140\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\nCo-authored-by: Sid
<siddharthmantri1@gmail.com>","sha":"7aa44ebe60393c5eba50881cb6646d78ccfb09b0"}}]}]
BACKPORT-->

Co-authored-by: Eamonn-OL <119305140+Eamonn-OL@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Sid <siddharthmantri1@gmail.com>
kibanamachine added a commit that referenced this pull request Oct 2, 2025
# Backport

This will backport the following commits from `main` to `8.19`:
- [Adding API Key Wildcard Search
(#221959)](#221959)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT
[{"author":{"name":"Eamonn-OL","email":"119305140+Eamonn-OL@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-10-02T11:09:41Z","message":"Adding
API Key Wildcard Search (#221959)\n\nAdding ability to do partial
matches/searches in the API Key section of\nthe Management
Console.\n\n\n\nhttps://github.com/user-attachments/assets/02e9c44f-101f-44e3-b7cb-dc731646d140\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\nCo-authored-by: Sid
<siddharthmantri1@gmail.com>","sha":"7aa44ebe60393c5eba50881cb6646d78ccfb09b0","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Security","Feature:Users/Roles/API
Keys","backport:all-open","v9.2.0"],"title":"Adding API Key Wildcard
Search","number":221959,"url":"https://github.com/elastic/kibana/pull/221959","mergeCommit":{"message":"Adding
API Key Wildcard Search (#221959)\n\nAdding ability to do partial
matches/searches in the API Key section of\nthe Management
Console.\n\n\n\nhttps://github.com/user-attachments/assets/02e9c44f-101f-44e3-b7cb-dc731646d140\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\nCo-authored-by: Sid
<siddharthmantri1@gmail.com>","sha":"7aa44ebe60393c5eba50881cb6646d78ccfb09b0"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/221959","number":221959,"mergeCommit":{"message":"Adding
API Key Wildcard Search (#221959)\n\nAdding ability to do partial
matches/searches in the API Key section of\nthe Management
Console.\n\n\n\nhttps://github.com/user-attachments/assets/02e9c44f-101f-44e3-b7cb-dc731646d140\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\nCo-authored-by: Sid
<siddharthmantri1@gmail.com>","sha":"7aa44ebe60393c5eba50881cb6646d78ccfb09b0"}}]}]
BACKPORT-->

Co-authored-by: Eamonn-OL <119305140+Eamonn-OL@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Sid <siddharthmantri1@gmail.com>
kibanamachine added a commit that referenced this pull request Oct 2, 2025
# Backport

This will backport the following commits from `main` to `8.18`:
- [Adding API Key Wildcard Search
(#221959)](#221959)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT
[{"author":{"name":"Eamonn-OL","email":"119305140+Eamonn-OL@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-10-02T11:09:41Z","message":"Adding
API Key Wildcard Search (#221959)\n\nAdding ability to do partial
matches/searches in the API Key section of\nthe Management
Console.\n\n\n\nhttps://github.com/user-attachments/assets/02e9c44f-101f-44e3-b7cb-dc731646d140\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\nCo-authored-by: Sid
<siddharthmantri1@gmail.com>","sha":"7aa44ebe60393c5eba50881cb6646d78ccfb09b0","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Security","Feature:Users/Roles/API
Keys","backport:all-open","v9.2.0"],"title":"Adding API Key Wildcard
Search","number":221959,"url":"https://github.com/elastic/kibana/pull/221959","mergeCommit":{"message":"Adding
API Key Wildcard Search (#221959)\n\nAdding ability to do partial
matches/searches in the API Key section of\nthe Management
Console.\n\n\n\nhttps://github.com/user-attachments/assets/02e9c44f-101f-44e3-b7cb-dc731646d140\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\nCo-authored-by: Sid
<siddharthmantri1@gmail.com>","sha":"7aa44ebe60393c5eba50881cb6646d78ccfb09b0"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/221959","number":221959,"mergeCommit":{"message":"Adding
API Key Wildcard Search (#221959)\n\nAdding ability to do partial
matches/searches in the API Key section of\nthe Management
Console.\n\n\n\nhttps://github.com/user-attachments/assets/02e9c44f-101f-44e3-b7cb-dc731646d140\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\nCo-authored-by: Sid
<siddharthmantri1@gmail.com>","sha":"7aa44ebe60393c5eba50881cb6646d78ccfb09b0"}}]}]
BACKPORT-->

Co-authored-by: Eamonn-OL <119305140+Eamonn-OL@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Sid <siddharthmantri1@gmail.com>
@mistic mistic added v9.1.6 and removed v9.1.5 labels Oct 6, 2025
rylnd pushed a commit to rylnd/kibana that referenced this pull request Oct 17, 2025
Adding ability to do partial matches/searches in the API Key section of
the Management Console.



https://github.com/user-attachments/assets/02e9c44f-101f-44e3-b7cb-dc731646d140

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Sid <siddharthmantri1@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:all-open Backport to all branches that could still receive a release Feature:Users/Roles/API Keys release_note:fix Team:Security Platform Security: Auth, Users, Roles, Spaces, Audit Logging, etc t// v8.18.8 v8.19.5 v9.0.8 v9.1.6 v9.2.0

7 participants