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

Enable custom roles and spaces in serverless projects #195584

Merged
merged 28 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
76e99dc
Enables custom roles for search and sec projects, enabled multiple sp…
jeramysoucy Oct 9, 2024
998c76f
Merge branch 'main' into enable-roles-space-serverless
jeramysoucy Oct 9, 2024
b7286c2
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine Oct 9, 2024
e12a3d8
Fixes imports, unused var
jeramysoucy Oct 10, 2024
7236e7a
Fixes OBLT feature flag config - Kibana role management needed
jeramysoucy Oct 10, 2024
e33d371
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine Oct 10, 2024
4e9cb4f
Updates serverless functional tests
jeramysoucy Oct 10, 2024
1d132b1
Move custom roles to default config, disable in oblt
jeramysoucy Oct 10, 2024
4e6bfa9
Moves solution specific privilege-related tests from feature flag con…
jeramysoucy Oct 10, 2024
cd0d8e4
Reorganizes authorization tests
jeramysoucy Oct 10, 2024
1994ad6
Merge branch 'main' into enable-roles-space-serverless
jeramysoucy Oct 10, 2024
2bb0766
Merge branch 'main' into enable-roles-space-serverless
jeramysoucy Oct 11, 2024
5cee6b2
Restores missing feature flag kibana config setting
jeramysoucy Oct 11, 2024
9b3de20
Merge branch 'main' into enable-roles-space-serverless
jeramysoucy Oct 11, 2024
bf7674a
Removes redundant FTR config options
jeramysoucy Oct 11, 2024
af3306c
Merge branch 'main' into enable-roles-space-serverless
jeramysoucy Oct 14, 2024
e72cf08
Updates cloud urls in ftr base serverlessss config
jeramysoucy Oct 14, 2024
3dc49a4
Merge branch 'main' into enable-roles-space-serverless
jeramysoucy Oct 14, 2024
3d77eaa
Fixes accidental deletion
jeramysoucy Oct 14, 2024
83e3bbc
Updates the url in card nav for user and role management
jeramysoucy Oct 14, 2024
f3e47b4
Merge branch 'main' into enable-roles-space-serverless
jeramysoucy Oct 15, 2024
3fbbf40
Merge branch 'main' into enable-roles-space-serverless
dmlemeshko Oct 15, 2024
74639ce
Fixes typos, comments, and default config
jeramysoucy Oct 21, 2024
6a375a2
Merge branch 'main' into enable-roles-space-serverless
jeramysoucy Oct 21, 2024
55f2e0f
[CI] Auto-commit changed files from 'node scripts/capture_oas_snapsho…
kibanamachine Oct 21, 2024
e663a71
[CI] Auto-commit changed files from 'make api-docs && make api-docs-s…
kibanamachine Oct 21, 2024
e9462c3
Fixes bad merge on oblt feature flag config
jeramysoucy Oct 21, 2024
504802b
Updates config unit test
jeramysoucy Oct 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions config/serverless.oblt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,6 @@ xpack.ml.compatibleModuleType: 'observability'

# Disable the embedded Dev Console
console.ui.embeddedEnabled: false

# Disable role management (custom roles)
xpack.security.roleManagementEnabled: false
5 changes: 4 additions & 1 deletion config/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ server.versioned.versionResolution: newest
server.versioned.strictClientVersionCheck: false

# Enforce single "default" space and disable feature visibility controls
xpack.spaces.maxSpaces: 1
xpack.spaces.maxSpaces: 100
xpack.spaces.allowFeatureVisibility: false
xpack.spaces.allowSolutionVisibility: false

Expand Down Expand Up @@ -225,3 +225,6 @@ monitoring.ui.enabled: false
xpack.securitySolution.enableUiSettingsValidations: true
data.enableUiSettingsValidations: true
discover.enableUiSettingsValidations: true

# Enable role management (custom roles) by default
xpack.security.roleManagementEnabled: true
jeramysoucy marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ export function createServerlessTestConfig<T extends DeploymentAgnosticCommonSer
...svlSharedConfig.get('kbnTestServer.serverArgs'),
...kbnServerArgsFromController[options.serverlessProject],
`--serverless=${options.serverlessProject}`,
// custom native roles are enabled only for search and security projects
...(options.serverlessProject !== 'oblt'
? ['--xpack.security.roleManagementEnabled=true']
: []),
],
},
testFiles: options.testFiles,
Expand Down
4 changes: 0 additions & 4 deletions x-pack/test_serverless/api_integration/config.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ export function createTestConfig(options: CreateTestConfigOptions) {
serverArgs: [
...svlSharedConfig.get('kbnTestServer.serverArgs'),
`--serverless=${options.serverlessProject}`,
// custom native roles are enabled only for search and security projects
...(options.serverlessProject !== 'oblt'
? ['--xpack.security.roleManagementEnabled=true']
: []),
...(options.kbnServerArgs || []),
],
},
Expand Down
Loading