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

TSDB: Add security tests for _tsid #81382

Merged
merged 2 commits into from
Dec 9, 2021

Conversation

csoulios
Copy link
Contributor

@csoulios csoulios commented Dec 6, 2021

This is a follow up to #80276

Relates to #74660

@csoulios csoulios added >test Issues or PRs that are addressing/adding tests :Security/Authorization Roles, Privileges, DLS/FLS, RBAC/ABAC :StorageEngine/TSDB You know, for Metrics v8.1.0 labels Dec 6, 2021
@elasticmachine elasticmachine added Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) Team:Security Meta label for security team labels Dec 6, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (Team:Analytics)

@elasticmachine
Copy link
Collaborator

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

@csoulios csoulios changed the title [TSDB] Add security tests for _tsid TSDB: Add security tests for _tsid Dec 6, 2021
@salvatore-campagna
Copy link
Contributor

salvatore-campagna commented Dec 9, 2021

LGTM. Just a few questions:

  • The routing_path is used in such a way to have all documents with the same value for metricset and k8s.pod.uid in the same shard?
  • In the last test the API failing is the search API even if security.put_role uses a match query on _tsid (which should not be allowed), right?
  • Why we do not allow queries on the _tsid?

@csoulios
Copy link
Contributor Author

csoulios commented Dec 9, 2021

@elasticmachine update branch

@csoulios csoulios merged commit 8fc9ba7 into elastic:master Dec 9, 2021
@csoulios csoulios deleted the tsid-security-tests branch December 9, 2021 13:40
@wchaparro wchaparro assigned csoulios and unassigned csoulios Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Security/Authorization Roles, Privileges, DLS/FLS, RBAC/ABAC :StorageEngine/TSDB You know, for Metrics Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) Team:Security Meta label for security team >test Issues or PRs that are addressing/adding tests v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants