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

[8.x] [FTR] enable roles management testing for Observability project (#196514) #197845

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sqren/backport)\n\n\n\nCo-authored-by: Dzmitry Lemechko "}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->

…tic#196514)

## Summary

This PR makes changes in FTR `saml_auth` service to allow creating
custom role for Oblt serverless project, when roles management is
explicitly enabled with `--xpack.security.roleManagementEnabled=true` in
Kibana server arguments.

I also added [role_management/custom_role_access.ts
](x-pack/test_serverless/functional/test_suites/observability/role_management/custom_role_access.ts)
as a test example. Currently roles management is enabled in
`x-pack/test_serverless/functional/test_suites/observability/config.feature_flags.ts`
and after this PR is merged, more tests with custom roles can be added
for Oblt project.

How to run tests:

```
node scripts/functional_tests --config x-pack/test_serverless/functional/test_suites/observability/config.feature_flags.ts
```

(cherry picked from commit 16c965f)
@kibanamachine kibanamachine merged commit b52af9c into elastic:8.x Oct 25, 2024
24 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @dmlemeshko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants