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

Update serverless roles API tests #186467

Closed
jeramysoucy opened this issue Jun 19, 2024 · 2 comments · Fixed by #194922
Closed

Update serverless roles API tests #186467

jeramysoucy opened this issue Jun 19, 2024 · 2 comments · Fixed by #194922
Assignees
Labels
chore Feature:Users/Roles/API Keys Project:Serverless Work as part of the Serverless project for its initial release Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! test

Comments

@jeramysoucy
Copy link
Contributor

jeramysoucy commented Jun 19, 2024

The serverless API tests are all in process of being updated to use non-operator authentication. The roles APIs should be updated to use an appropriate access level role, and to manipulate non-reserved roles (these currently target the superuser role and will return 400's and 401's instead of the expected status).

e.g. file https://github.com/elastic/kibana/blob/main/x-pack/test_serverless/api_integration/test_suites/common/platform_security/roles_routes_feature_flag.ts

In serverless the roles APIs are gated behind feature flags, which need to be enabled in the corresponding feature flag configs.
e.g file x-pack/test_serverless/api_integration/test_suites/observability/config.feature_flags.ts
Required ES flag: xpack.security.authc.native_roles.enabled=true

@jeramysoucy jeramysoucy added test chore Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! Feature:Users/Roles/API Keys Project:Serverless Work as part of the Serverless project for its initial release labels Jun 19, 2024
@elasticmachine
Copy link
Contributor

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

@legrego
Copy link
Member

legrego commented Oct 1, 2024

@jeramysoucy to check if this has been resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Feature:Users/Roles/API Keys Project:Serverless Work as part of the Serverless project for its initial release Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! test
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants