Skip to content

Fix case sensitivity of fields in role page#246069

Merged
jeramysoucy merged 6 commits intoelastic:mainfrom
jeramysoucy:fix-field-case-sensitivity
Dec 16, 2025
Merged

Fix case sensitivity of fields in role page#246069
jeramysoucy merged 6 commits intoelastic:mainfrom
jeramysoucy:fix-field-case-sensitivity

Conversation

@jeramysoucy
Copy link
Contributor

@jeramysoucy jeramysoucy commented Dec 11, 2025

Closes #244000

Summary

This PR makes the index privileges field combos on the Edit Role page case sensitive to correlate to how fields are handled in Elasticsearch.

Screenshots

Screenshot 2025-12-11 at 14 33 58 Screenshot 2025-12-11 at 14 33 02

Tests

  • x-pack/platform/test/functional/apps/security/field_level_security.ts

Release note

Fixes an issue where fields were not case-sensitive in Kibana's user interface for creating and updating roles, though fields are case-sensitive in Elasticsearch.

@jeramysoucy jeramysoucy added bug Fixes for quality problems that affect the customer experience release_note:fix Team:Security Platform Security: Auth, Users, Roles, Spaces, Audit Logging, etc t// backport:all-open Backport to all branches that could still receive a release v9.3.0 labels Dec 11, 2025
@jeramysoucy jeramysoucy marked this pull request as ready for review December 11, 2025 21:02
@jeramysoucy jeramysoucy requested a review from a team as a code owner December 11, 2025 21:02
@elasticmachine
Copy link
Contributor

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

@elasticmachine
Copy link
Contributor

⏳ Build in-progress, with failures

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #10 / security app field_level_security should support case-sensitive fields
  • [job] [logs] FTR Configs #10 / security app field_level_security should support case-sensitive fields
  • [job] [logs] FTR Configs #129 / serverless observability UI - Cases and Rules Serverless Observability Cases Cases list row actions Severity to medium
  • [job] [logs] FTR Configs #48 / Visualizations - Group 2 lens app - Agg based Vis Open in Lens Goal "before all" hook for "should show the "Convert to Lens" menu item"

History

},
});

await PageObjects.common.sleep(1000);
Copy link
Contributor

Choose a reason for hiding this comment

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

just curious why this sleep is necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

++ I am not sure that it is. The other tests in this suite also contain this, so I did the same. We could investigate whether this is necessary or overkill though - I wonder if a much shorter pause (or no pause) would be sufficient.

Copy link
Contributor

@rgodfrey-elastic rgodfrey-elastic left a comment

Choose a reason for hiding this comment

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

LGTM

@jeramysoucy jeramysoucy enabled auto-merge (squash) December 16, 2025 21:09
@jeramysoucy jeramysoucy merged commit c4e2c1f into elastic:main Dec 16, 2025
13 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.1, 9.2

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 16, 2025
Closes elastic#244000

## Summary

This PR makes the index privileges field combos on the Edit Role page
case sensitive to correlate to how fields are handled in Elasticsearch.

### Screenshots
<img width="914" height="336" alt="Screenshot 2025-12-11 at 14 33 58"
src="https://github.com/user-attachments/assets/dcd0b4a8-4cb1-4216-a4d9-83ec0bdb7234"
/>

<img width="911" height="338" alt="Screenshot 2025-12-11 at 14 33 02"
src="https://github.com/user-attachments/assets/c9bd09a4-4a44-4d9a-ac74-1aff6be006eb"
/>

### Tests
- x-pack/platform/test/functional/apps/security/field_level_security.ts

## Release note
Fixes an issue where fields were not case-sensitive in Kibana's user
interface for creating and updating roles, though fields are
case-sensitive in Elasticsearch.

(cherry picked from commit c4e2c1f)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 16, 2025
Closes elastic#244000

## Summary

This PR makes the index privileges field combos on the Edit Role page
case sensitive to correlate to how fields are handled in Elasticsearch.

### Screenshots
<img width="914" height="336" alt="Screenshot 2025-12-11 at 14 33 58"
src="https://github.com/user-attachments/assets/dcd0b4a8-4cb1-4216-a4d9-83ec0bdb7234"
/>

<img width="911" height="338" alt="Screenshot 2025-12-11 at 14 33 02"
src="https://github.com/user-attachments/assets/c9bd09a4-4a44-4d9a-ac74-1aff6be006eb"
/>

### Tests
- x-pack/platform/test/functional/apps/security/field_level_security.ts

## Release note
Fixes an issue where fields were not case-sensitive in Kibana's user
interface for creating and updating roles, though fields are
case-sensitive in Elasticsearch.

(cherry picked from commit c4e2c1f)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 16, 2025
Closes elastic#244000

## Summary

This PR makes the index privileges field combos on the Edit Role page
case sensitive to correlate to how fields are handled in Elasticsearch.

### Screenshots
<img width="914" height="336" alt="Screenshot 2025-12-11 at 14 33 58"
src="https://github.com/user-attachments/assets/dcd0b4a8-4cb1-4216-a4d9-83ec0bdb7234"
/>

<img width="911" height="338" alt="Screenshot 2025-12-11 at 14 33 02"
src="https://github.com/user-attachments/assets/c9bd09a4-4a44-4d9a-ac74-1aff6be006eb"
/>

### Tests
- x-pack/platform/test/functional/apps/security/field_level_security.ts

## Release note
Fixes an issue where fields were not case-sensitive in Kibana's user
interface for creating and updating roles, though fields are
case-sensitive in Elasticsearch.

(cherry picked from commit c4e2c1f)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.19
9.1
9.2

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 Dec 16, 2025
# Backport

This will backport the following commits from `main` to `9.1`:
- [Fix case sensitivity of fields in role page
(#246069)](#246069)

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

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

<!--BACKPORT [{"author":{"name":"Jeramy
Soucy","email":"jeramy.soucy@elastic.co"},"sourceCommit":{"committedDate":"2025-12-16T21:38:29Z","message":"Fix
case sensitivity of fields in role page (#246069)\n\nCloses
#244000\n\n## Summary\n\nThis PR makes the index privileges field combos
on the Edit Role page\ncase sensitive to correlate to how fields are
handled in Elasticsearch.\n\n### Screenshots\n<img width=\"914\"
height=\"336\" alt=\"Screenshot 2025-12-11 at 14 33
58\"\nsrc=\"https://github.com/user-attachments/assets/dcd0b4a8-4cb1-4216-a4d9-83ec0bdb7234\"\n/>\n\n<img
width=\"911\" height=\"338\" alt=\"Screenshot 2025-12-11 at 14 33
02\"\nsrc=\"https://github.com/user-attachments/assets/c9bd09a4-4a44-4d9a-ac74-1aff6be006eb\"\n/>\n\n###
Tests\n-
x-pack/platform/test/functional/apps/security/field_level_security.ts\n\n##
Release note\nFixes an issue where fields were not case-sensitive in
Kibana's user\ninterface for creating and updating roles, though fields
are\ncase-sensitive in
Elasticsearch.","sha":"c4e2c1f12b8dad3a96b8d991c29b6226f7e93c86","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Security","backport:all-open","v9.3.0"],"title":"Fix
case sensitivity of fields in role
page","number":246069,"url":"https://github.com/elastic/kibana/pull/246069","mergeCommit":{"message":"Fix
case sensitivity of fields in role page (#246069)\n\nCloses
#244000\n\n## Summary\n\nThis PR makes the index privileges field combos
on the Edit Role page\ncase sensitive to correlate to how fields are
handled in Elasticsearch.\n\n### Screenshots\n<img width=\"914\"
height=\"336\" alt=\"Screenshot 2025-12-11 at 14 33
58\"\nsrc=\"https://github.com/user-attachments/assets/dcd0b4a8-4cb1-4216-a4d9-83ec0bdb7234\"\n/>\n\n<img
width=\"911\" height=\"338\" alt=\"Screenshot 2025-12-11 at 14 33
02\"\nsrc=\"https://github.com/user-attachments/assets/c9bd09a4-4a44-4d9a-ac74-1aff6be006eb\"\n/>\n\n###
Tests\n-
x-pack/platform/test/functional/apps/security/field_level_security.ts\n\n##
Release note\nFixes an issue where fields were not case-sensitive in
Kibana's user\ninterface for creating and updating roles, though fields
are\ncase-sensitive in
Elasticsearch.","sha":"c4e2c1f12b8dad3a96b8d991c29b6226f7e93c86"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/246069","number":246069,"mergeCommit":{"message":"Fix
case sensitivity of fields in role page (#246069)\n\nCloses
#244000\n\n## Summary\n\nThis PR makes the index privileges field combos
on the Edit Role page\ncase sensitive to correlate to how fields are
handled in Elasticsearch.\n\n### Screenshots\n<img width=\"914\"
height=\"336\" alt=\"Screenshot 2025-12-11 at 14 33
58\"\nsrc=\"https://github.com/user-attachments/assets/dcd0b4a8-4cb1-4216-a4d9-83ec0bdb7234\"\n/>\n\n<img
width=\"911\" height=\"338\" alt=\"Screenshot 2025-12-11 at 14 33
02\"\nsrc=\"https://github.com/user-attachments/assets/c9bd09a4-4a44-4d9a-ac74-1aff6be006eb\"\n/>\n\n###
Tests\n-
x-pack/platform/test/functional/apps/security/field_level_security.ts\n\n##
Release note\nFixes an issue where fields were not case-sensitive in
Kibana's user\ninterface for creating and updating roles, though fields
are\ncase-sensitive in
Elasticsearch.","sha":"c4e2c1f12b8dad3a96b8d991c29b6226f7e93c86"}}]}]
BACKPORT-->

Co-authored-by: Jeramy Soucy <jeramy.soucy@elastic.co>
kibanamachine added a commit that referenced this pull request Dec 16, 2025
# Backport

This will backport the following commits from `main` to `8.19`:
- [Fix case sensitivity of fields in role page
(#246069)](#246069)

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

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

<!--BACKPORT [{"author":{"name":"Jeramy
Soucy","email":"jeramy.soucy@elastic.co"},"sourceCommit":{"committedDate":"2025-12-16T21:38:29Z","message":"Fix
case sensitivity of fields in role page (#246069)\n\nCloses
#244000\n\n## Summary\n\nThis PR makes the index privileges field combos
on the Edit Role page\ncase sensitive to correlate to how fields are
handled in Elasticsearch.\n\n### Screenshots\n<img width=\"914\"
height=\"336\" alt=\"Screenshot 2025-12-11 at 14 33
58\"\nsrc=\"https://github.com/user-attachments/assets/dcd0b4a8-4cb1-4216-a4d9-83ec0bdb7234\"\n/>\n\n<img
width=\"911\" height=\"338\" alt=\"Screenshot 2025-12-11 at 14 33
02\"\nsrc=\"https://github.com/user-attachments/assets/c9bd09a4-4a44-4d9a-ac74-1aff6be006eb\"\n/>\n\n###
Tests\n-
x-pack/platform/test/functional/apps/security/field_level_security.ts\n\n##
Release note\nFixes an issue where fields were not case-sensitive in
Kibana's user\ninterface for creating and updating roles, though fields
are\ncase-sensitive in
Elasticsearch.","sha":"c4e2c1f12b8dad3a96b8d991c29b6226f7e93c86","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Security","backport:all-open","v9.3.0"],"title":"Fix
case sensitivity of fields in role
page","number":246069,"url":"https://github.com/elastic/kibana/pull/246069","mergeCommit":{"message":"Fix
case sensitivity of fields in role page (#246069)\n\nCloses
#244000\n\n## Summary\n\nThis PR makes the index privileges field combos
on the Edit Role page\ncase sensitive to correlate to how fields are
handled in Elasticsearch.\n\n### Screenshots\n<img width=\"914\"
height=\"336\" alt=\"Screenshot 2025-12-11 at 14 33
58\"\nsrc=\"https://github.com/user-attachments/assets/dcd0b4a8-4cb1-4216-a4d9-83ec0bdb7234\"\n/>\n\n<img
width=\"911\" height=\"338\" alt=\"Screenshot 2025-12-11 at 14 33
02\"\nsrc=\"https://github.com/user-attachments/assets/c9bd09a4-4a44-4d9a-ac74-1aff6be006eb\"\n/>\n\n###
Tests\n-
x-pack/platform/test/functional/apps/security/field_level_security.ts\n\n##
Release note\nFixes an issue where fields were not case-sensitive in
Kibana's user\ninterface for creating and updating roles, though fields
are\ncase-sensitive in
Elasticsearch.","sha":"c4e2c1f12b8dad3a96b8d991c29b6226f7e93c86"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/246069","number":246069,"mergeCommit":{"message":"Fix
case sensitivity of fields in role page (#246069)\n\nCloses
#244000\n\n## Summary\n\nThis PR makes the index privileges field combos
on the Edit Role page\ncase sensitive to correlate to how fields are
handled in Elasticsearch.\n\n### Screenshots\n<img width=\"914\"
height=\"336\" alt=\"Screenshot 2025-12-11 at 14 33
58\"\nsrc=\"https://github.com/user-attachments/assets/dcd0b4a8-4cb1-4216-a4d9-83ec0bdb7234\"\n/>\n\n<img
width=\"911\" height=\"338\" alt=\"Screenshot 2025-12-11 at 14 33
02\"\nsrc=\"https://github.com/user-attachments/assets/c9bd09a4-4a44-4d9a-ac74-1aff6be006eb\"\n/>\n\n###
Tests\n-
x-pack/platform/test/functional/apps/security/field_level_security.ts\n\n##
Release note\nFixes an issue where fields were not case-sensitive in
Kibana's user\ninterface for creating and updating roles, though fields
are\ncase-sensitive in
Elasticsearch.","sha":"c4e2c1f12b8dad3a96b8d991c29b6226f7e93c86"}}]}]
BACKPORT-->

Co-authored-by: Jeramy Soucy <jeramy.soucy@elastic.co>
@kibanamachine kibanamachine added v8.19.9 backport missing Added to PRs automatically when the are determined to be missing a backport. labels Dec 16, 2025
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @jeramysoucy

kibanamachine added a commit that referenced this pull request Dec 18, 2025
# Backport

This will backport the following commits from `main` to `9.2`:
- [Fix case sensitivity of fields in role page
(#246069)](#246069)

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

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

<!--BACKPORT [{"author":{"name":"Jeramy
Soucy","email":"jeramy.soucy@elastic.co"},"sourceCommit":{"committedDate":"2025-12-16T21:38:29Z","message":"Fix
case sensitivity of fields in role page (#246069)\n\nCloses
#244000\n\n## Summary\n\nThis PR makes the index privileges field combos
on the Edit Role page\ncase sensitive to correlate to how fields are
handled in Elasticsearch.\n\n### Screenshots\n<img width=\"914\"
height=\"336\" alt=\"Screenshot 2025-12-11 at 14 33
58\"\nsrc=\"https://github.com/user-attachments/assets/dcd0b4a8-4cb1-4216-a4d9-83ec0bdb7234\"\n/>\n\n<img
width=\"911\" height=\"338\" alt=\"Screenshot 2025-12-11 at 14 33
02\"\nsrc=\"https://github.com/user-attachments/assets/c9bd09a4-4a44-4d9a-ac74-1aff6be006eb\"\n/>\n\n###
Tests\n-
x-pack/platform/test/functional/apps/security/field_level_security.ts\n\n##
Release note\nFixes an issue where fields were not case-sensitive in
Kibana's user\ninterface for creating and updating roles, though fields
are\ncase-sensitive in
Elasticsearch.","sha":"c4e2c1f12b8dad3a96b8d991c29b6226f7e93c86","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Security","backport:all-open","v9.3.0"],"title":"Fix
case sensitivity of fields in role
page","number":246069,"url":"https://github.com/elastic/kibana/pull/246069","mergeCommit":{"message":"Fix
case sensitivity of fields in role page (#246069)\n\nCloses
#244000\n\n## Summary\n\nThis PR makes the index privileges field combos
on the Edit Role page\ncase sensitive to correlate to how fields are
handled in Elasticsearch.\n\n### Screenshots\n<img width=\"914\"
height=\"336\" alt=\"Screenshot 2025-12-11 at 14 33
58\"\nsrc=\"https://github.com/user-attachments/assets/dcd0b4a8-4cb1-4216-a4d9-83ec0bdb7234\"\n/>\n\n<img
width=\"911\" height=\"338\" alt=\"Screenshot 2025-12-11 at 14 33
02\"\nsrc=\"https://github.com/user-attachments/assets/c9bd09a4-4a44-4d9a-ac74-1aff6be006eb\"\n/>\n\n###
Tests\n-
x-pack/platform/test/functional/apps/security/field_level_security.ts\n\n##
Release note\nFixes an issue where fields were not case-sensitive in
Kibana's user\ninterface for creating and updating roles, though fields
are\ncase-sensitive in
Elasticsearch.","sha":"c4e2c1f12b8dad3a96b8d991c29b6226f7e93c86"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/246069","number":246069,"mergeCommit":{"message":"Fix
case sensitivity of fields in role page (#246069)\n\nCloses
#244000\n\n## Summary\n\nThis PR makes the index privileges field combos
on the Edit Role page\ncase sensitive to correlate to how fields are
handled in Elasticsearch.\n\n### Screenshots\n<img width=\"914\"
height=\"336\" alt=\"Screenshot 2025-12-11 at 14 33
58\"\nsrc=\"https://github.com/user-attachments/assets/dcd0b4a8-4cb1-4216-a4d9-83ec0bdb7234\"\n/>\n\n<img
width=\"911\" height=\"338\" alt=\"Screenshot 2025-12-11 at 14 33
02\"\nsrc=\"https://github.com/user-attachments/assets/c9bd09a4-4a44-4d9a-ac74-1aff6be006eb\"\n/>\n\n###
Tests\n-
x-pack/platform/test/functional/apps/security/field_level_security.ts\n\n##
Release note\nFixes an issue where fields were not case-sensitive in
Kibana's user\ninterface for creating and updating roles, though fields
are\ncase-sensitive in
Elasticsearch.","sha":"c4e2c1f12b8dad3a96b8d991c29b6226f7e93c86"}}]}]
BACKPORT-->

Co-authored-by: Jeramy Soucy <jeramy.soucy@elastic.co>
@kibanamachine kibanamachine added v9.2.3 and removed backport missing Added to PRs automatically when the are determined to be missing a backport. labels Dec 18, 2025
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 bug Fixes for quality problems that affect the customer experience release_note:fix Team:Security Platform Security: Auth, Users, Roles, Spaces, Audit Logging, etc t// v8.19.9 v9.1.10 v9.2.4 v9.3.0

5 participants