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

Implement a new KeyStore file to configure the persistence logic #97

Closed
wants to merge 28 commits into from

Conversation

mcasas993
Copy link
Member

@mcasas993 mcasas993 commented Oct 9, 2024

Description

This PR implements the configuration persistence method, so the Command Manager plugin can send data to the Management API in the server. With this, it will know the endpoint of its HTTP Rest API and its credentials in order to establish the communication.

Issues Resolved

#95

@mcasas993 mcasas993 self-assigned this Oct 9, 2024
@mcasas993 mcasas993 linked an issue Oct 9, 2024 that may be closed by this pull request
@mcasas993
Copy link
Member Author

mcasas993 commented Oct 24, 2024

Opensearch solution

We ask for help to OpenSearch for managing the Settings in the Keystore, and they give us a simple solution:

The plugins can declare "secure" settings and then they will have access to the decrypted value directly. They only have access to their own declared secure settings, but not secure settings declared by other plugins

They can be declared like this and they can be accessed like any other setting.

The different between secureSetting vs normal setting is that secureSetting is stored in the keystore.

So we are going to refactor the code to simplify the solution.

@mcasas993 mcasas993 marked this pull request as ready for review October 25, 2024 14:11
@mcasas993 mcasas993 requested a review from a team as a code owner October 25, 2024 14:11
@mcasas993 mcasas993 closed this Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement the configuration persistence logic
2 participants