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

[fleet] Integration ILM Policies have insufficient permissions to perform some actions #128014

Closed
graphaelli opened this issue Mar 17, 2022 · 7 comments · Fixed by elastic/elasticsearch#85085
Assignees
Labels
bug Fixes for quality problems that affect the customer experience QA:Validated Issue has been validated by QA Team:Fleet Team label for Observability Data Collection Fleet team v8.2.0

Comments

@graphaelli
Copy link
Member

Kibana version: 8.2.0-SNAPSHOT

Elasticsearch version: 8.2.0-SNAPSHOT

Steps to reproduce:

  1. Configure installation of integrations via kibana.yml, eg for the APM Integration
  2. Wait for ILM phase changes
  3. Note that some cannot be executed due to permissions issues

Expected behavior:
ILM policices are executed as specified by the integration.

Provide logs and/or server output (if relevant):
Elasticsearch logs:

security_exception: action [indices:admin/delete] is unauthorized for user [kibana_system_user] with roles [kibana_system] on indices [.ds-traces-apm-default-2022.03.17-000001], this action is granted by the index privileges [delete_index,manage,all]

Any additional context:
Opened here as I expect the impact is likely beyond APM and Fleet has a centralized view of all packages available in the package repository. The corresponding APM issue is elastic/apm-server#7568.

@graphaelli graphaelli added bug Fixes for quality problems that affect the customer experience Team:Fleet Team label for Observability Data Collection Fleet team labels Mar 17, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@axw
Copy link
Member

axw commented Mar 18, 2022

I think we'll need to extend elastic/elasticsearch#81811 to cover the rest of the data streams.

@joshdover do we have longer term plans for this, so we don't need to keep updating kibana_system when we add data streams?

@joshdover
Copy link
Contributor

We haven't agreed on a plan yet, but I did file an issue here for discussion: elastic/package-spec#293.

Ideally, we consider starting to explore the long-term solution to package management, which would involve Elasticsearch installing these assets directly from packages, and requiring a manage_package privilege for end users or similar.

@joshdover
Copy link
Contributor

I think we'll need to extend elastic/elasticsearch#81811 to cover the rest of the data streams.

@axw would you mind handling this PR? I'm happy to review it or help as needed

@axw
Copy link
Member

axw commented Mar 18, 2022

@joshdover yup, I created elastic/elasticsearch#85085

@joshdover joshdover added the QA:Ready for Testing Code is merged and ready for QA to validate label Mar 22, 2022
@joshdover
Copy link
Contributor

How to test this manually:

  • Setup 8.2 cluster, do APM managed migration in Kibana -> APM -> Settings -> Schema -> Switch to Elastic Agent
  • Ingest some traces manually:
  • Rollover the data stream manually and confirm no errors, run this from Dev Tools:
POST traces-apm-default/_rollover 
{
  "conditions": {
    "max_docs":   "0"
  }
}

@amolnater-qasource
Copy link

Hi @joshdover
We have validated this on 8.2 Snapshot Kibana cloud environment and found it fixed now.

  • No errors observed on running below api from Dev tools:
POST traces-apm-default/_rollover 
{
  "conditions": {
    "max_docs":   "0"
  }
}

Build details:
BUILD: 51431
COMMIT: a743498

Screenshot:
2

Thanks!

@amolnater-qasource amolnater-qasource added QA:Validated Issue has been validated by QA and removed QA:Ready for Testing Code is merged and ready for QA to validate labels Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience QA:Validated Issue has been validated by QA Team:Fleet Team label for Observability Data Collection Fleet team v8.2.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants