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

Merge keystore dao to kernel core #3659

Conversation

mpmadhavig
Copy link

@mpmadhavig mpmadhavig commented Sep 4, 2023

Describe

This effort will move the keystore package from security-mgt:security-mgt to the kernel:core. The decision has been taken to do so was due to a cyclic dependency between the keystore package and the keyStoreAdmin in carbon-core.

The effort includes the DAO layer implementation inrtroduced when removing registry implementation from keystore. Commits made to this PR has been moved to here.

Related issues

Related PRs

@CLAassistant
Copy link

CLAassistant commented Sep 4, 2023

CLA assistant check
All committers have signed the CLA.

parent/pom.xml Outdated Show resolved Hide resolved
@@ -217,6 +215,7 @@ public Key getPrivateKey(String keyStoreName, String alias) {
* @return password of the key store
* @throws Exception Error when reading the registry resource of decrypting the password
*/
// TODO: deprecate this method in the future since we are no longer using registry for key store management.

Choose a reason for hiding this comment

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

Let's incorporate this change as well.

Copy link
Author

Choose a reason for hiding this comment

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

Resolved with 2660884.
(The usage will be removed with a different PR.)


keyStoreDAO.updateKeyStore(this.tenantUUID, updatedKeyStoreModel);

// TODO: is it correct to use new Date() here? The value stored in DB might be different.

Choose a reason for hiding this comment

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

If there is a problem, either fix it or report a git issue.

@@ -0,0 +1,105 @@
/*
* Copyright (c) 2010, WSO2 LLC. (https://www.wso2.com).

Choose a reason for hiding this comment

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

Suggested change
* Copyright (c) 2010, WSO2 LLC. (https://www.wso2.com).
* Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com).

Copy link
Author

Choose a reason for hiding this comment

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

Though this file looks like newly added, it is an old file with a git history.

@@ -0,0 +1,95 @@
/*
* Copyright (c) 2010, WSO2 LLC. (https://www.wso2.com).

Choose a reason for hiding this comment

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

Suggested change
* Copyright (c) 2010, WSO2 LLC. (https://www.wso2.com).
* Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com).

Check the other license headers as well.

Copy link
Author

Choose a reason for hiding this comment

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

Though this file looks like newly added, it is an old file with a git history.

@mpmadhavig mpmadhavig merged commit 9be10c0 into wso2:feature-remove-registry-from-keystore Dec 17, 2023
1 check was pending
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.