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

Extract the secret's json path from a config schema #11823

Closed
wants to merge 14 commits into from

Conversation

benmoriceau
Copy link
Contributor

What

In preparation of the migration to no store to a secret manager store, we need an easy way to list, extract and change all the secret values of a given config based on its schema .

This PR is helping to get all the secret paths. It will then use #11680 (review) to manipulate those secrets.

@benmoriceau benmoriceau requested review from jrhizor and cgardens April 7, 2022 23:42
@benmoriceau
Copy link
Contributor Author

I realized that I need some cleanup before moving it to non-draft.

* @param currentPath - The current path of the node
* @return
*/
protected Set<String> getAllSecretPathsRec(final JsonNode currentNode, final String currentPath) {
Copy link
Contributor

@cgardens cgardens Apr 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it feels like we're adding a 3rd jsonschema tree traversal implementation to our codebase here. that makes me nervous. i have a generic implementation that i've been working on to replace these duplicative implementations. will share this afternoon.

cgardens and others added 2 commits April 8, 2022 09:49
…s.java

Co-authored-by: Topher Lubaway <asimplechris@gmail.com>
@CLAassistant
Copy link

CLAassistant commented Apr 8, 2022

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added area/api Related to the api area/connectors Connector related issues area/documentation Improvements or additions to documentation area/frontend area/platform issues related to the platform area/scheduler area/server area/worker Related to worker CDK Connector Development Kit kubernetes labels Apr 8, 2022
@benmoriceau benmoriceau temporarily deployed to more-secrets April 8, 2022 17:30 Inactive
@benmoriceau benmoriceau temporarily deployed to more-secrets April 8, 2022 17:30 Inactive
@benmoriceau benmoriceau temporarily deployed to more-secrets April 8, 2022 17:34 Inactive
@benmoriceau benmoriceau temporarily deployed to more-secrets April 8, 2022 17:34 Inactive
@benmoriceau benmoriceau temporarily deployed to more-secrets April 8, 2022 18:10 Inactive
@benmoriceau benmoriceau temporarily deployed to more-secrets April 8, 2022 18:10 Inactive
Base automatically changed from cgardens/json-path to master April 8, 2022 19:03
@benmoriceau benmoriceau reopened this Apr 8, 2022
@github-actions github-actions bot removed area/api Related to the api area/platform issues related to the platform area/documentation Improvements or additions to documentation area/server area/worker Related to worker kubernetes area/connectors Connector related issues area/scheduler CDK Connector Development Kit area/frontend labels Apr 8, 2022
@benmoriceau benmoriceau temporarily deployed to more-secrets April 8, 2022 20:46 Inactive
@benmoriceau benmoriceau temporarily deployed to more-secrets April 8, 2022 20:46 Inactive
@benmoriceau benmoriceau temporarily deployed to more-secrets April 8, 2022 20:50 Inactive
@benmoriceau benmoriceau temporarily deployed to more-secrets April 8, 2022 20:50 Inactive
@benmoriceau benmoriceau closed this Apr 8, 2022
@benmoriceau
Copy link
Contributor Author

Close because duplicated with what Charles is doing

@swyxio swyxio deleted the bmoric/migrate-to-secured-secret-store branch October 12, 2022 18:24
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.

4 participants