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

[Extensions] Save user details to scheduled job identity index on postIndex of a plugin/extension scheduling a new job #2625

Open
Tracked by #2528
cwperks opened this issue Mar 31, 2023 · 1 comment
Labels
triaged Issues labeled as 'Triaged' have been reviewed and are deemed actionable.

Comments

@cwperks
Copy link
Member

cwperks commented Mar 31, 2023

This issue refers to the implementation of saveUserDetails as described on the interface proposed in this issue: #2626

On a call to saveUserDetails the security plugin should save the user information associated with a scheduled job to a single index with references back to the index that job details are stored in. The reference back to a job details entry will be a job_id and job_index which references a single entry of job details where the details of a scheduled job (including its schedule) is stored.

If the index doesn't exist yet then it should be created. This index should have system index protection since it contains sensitive data - like the security index. See this block from AD on how to create an index and index a document: https://github.com/opensearch-project/anomaly-detection/blob/041d6ce73d37f1697013b2d2f0683fbfe012247c/src/main/java/org/opensearch/ad/rest/handler/IndexAnomalyDetectorJobActionHandler.java#L163-L181

The JobSweeper is an IndexingOperationListener which means it can override postIndex to listen and react to new job details documents being indexed across any of the indices that are registered with job scheduler. In this method, the method described in this issue can be invoked to trigger the identity system.

@cwperks cwperks converted this from a draft issue Mar 31, 2023
@github-actions github-actions bot added the untriaged Require the attention of the repository maintainers and may need to be prioritized label Mar 31, 2023
@stephen-crawford stephen-crawford added triaged Issues labeled as 'Triaged' have been reviewed and are deemed actionable. and removed untriaged Require the attention of the repository maintainers and may need to be prioritized labels Apr 3, 2023
@stephen-crawford
Copy link
Contributor

[Triage] This is part of the Extensions project.

@cwperks cwperks changed the title [Extensions] Provide refresh token to a request that will create a scheduled job [Extensions] Save user details to scheduled job identity index on postIndex of a plugin/extension scheduling a new job May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triaged Issues labeled as 'Triaged' have been reviewed and are deemed actionable.
Projects
Status: Todo
Development

No branches or pull requests

2 participants