[Observability serverless] turn on custom roles by default#227878
[Observability serverless] turn on custom roles by default#227878pheyos merged 17 commits intoelastic:mainfrom
Conversation
cebc101 to
5970f48
Compare
jeramysoucy
left a comment
There was a problem hiding this comment.
I noticed that we still have some tests that are specifically skipped for OBLT that can be unskipped now that we're enabling custom roles. Can we audit the code for instances like this and evaluate?
// custom roles are not enabled for observability projects
this.tags(['skipSvlOblt']);
config/serverless.oblt.yml
Outdated
|
|
||
| # Disable role management (custom roles) | ||
| xpack.security.roleManagementEnabled: false | ||
| xpack.security.roleManagementEnabled: true |
There was a problem hiding this comment.
Nit: as this defaults to true, I think we can just remove it, along with the comment.
.../platform/test/api_integration_deployment_agnostic/default_configs/serverless.config.base.ts
Show resolved
Hide resolved
| ...(options.serverlessProject !== 'oblt' | ||
| ? ['xpack.security.authc.native_roles.enabled=true'] | ||
| : []), | ||
| 'xpack.security.authc.native_roles.enabled=true', |
There was a problem hiding this comment.
Need to set the ES flag for all project types
There was a problem hiding this comment.
I updated this file to remove the skipSvlOblt tags that were preciously in place because custom roles was not yet supported on OBLT.
There was a problem hiding this comment.
I removed the roles tests here, which are now run for OBLT from the common config/index.
| ...(options.serverlessProject !== 'oblt' | ||
| ? ['xpack.security.authc.native_roles.enabled=true'] | ||
| : []), | ||
| 'xpack.security.authc.native_roles.enabled=true', |
There was a problem hiding this comment.
Need to set the ES flag to enable native roles for all project types now.
There was a problem hiding this comment.
I removed the skipSvlOblt tags that were here to handle when custom roles was not yet supported.
...erverless/functional/test_suites/common/platform_security/navigation/management_nav_cards.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
I removed the skipSvlOblt tags that were here to handle when custom roles was not yet supported.
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
...tions/observability/test/api_integration_deployment_agnostic/apis/alerting/es_query/index.ts
Show resolved
Hide resolved
...servability/test/api_integration_deployment_agnostic/apis/alerting/custom_threshold/index.ts
Show resolved
Hide resolved
| const platformSecurityUtils = getService('platformSecurityUtils'); | ||
|
|
||
| describe('Roles', function () { | ||
| // custom roles are not enabled for observability projects |
There was a problem hiding this comment.
@jeramysoucy is the comment at the top still relevant?
// Note: this suite is currently only called from the feature flags test config:
// x-pack/test_serverless/functional/test_suites/search/config.feature_flags.ts
// This can be moved into the common config groups once custom roles are enabled
// permanently in serverless.
| // loadTestFile(require.resolve('./rules/es_query_consumer')); | ||
| loadTestFile(require.resolve('./rules/custom_threshold_consumer')); | ||
| loadTestFile(require.resolve('./rules/es_query_consumer')); | ||
| loadTestFile(require.resolve('./role_management')); |
There was a problem hiding this comment.
The suite is skipped for MKI. Do we need to unskip it to be sure custom roles are working on MKI?
@dmlemeshko custom_role_access was added as an example, should it stay and be unkipped now that custom role management is enabled?
…thub.com:dominiqueclarke/kibana into feature/observability-custom-roles-on-by-default
awahab07
left a comment
There was a problem hiding this comment.
obs-ux-logs changes LGTM
💚 Build Succeeded
Metrics [docs]Page load bundle
History
|
…27878) ## Summary Relates to elastic#219861 Relates to elastic/observability-dev#4539 Turns on Custom roles by default in serverless by turning on the feature flag Original implementation found [here](elastic#219861). Moves tests from the feature flag specific files to the standard files. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: “jeramysoucy” <jeramy.soucy@elastic.co>
…27878) ## Summary Relates to elastic#219861 Relates to elastic/observability-dev#4539 Turns on Custom roles by default in serverless by turning on the feature flag Original implementation found [here](elastic#219861). Moves tests from the feature flag specific files to the standard files. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: “jeramysoucy” <jeramy.soucy@elastic.co>
Summary
Relates to #219861
Relates to https://github.com/elastic/observability-dev/issues/4539
Turns on Custom roles by default in serverless by turning on the feature flag
Original implementation found here.
Moves tests from the feature flag specific files to the standard files.