-
Notifications
You must be signed in to change notification settings - Fork 658
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
Move keystore persistence manager implementations to org.wso2.carbon.utils component #4143
Move keystore persistence manager implementations to org.wso2.carbon.utils component #4143
Conversation
@@ -256,6 +256,7 @@ | |||
<Export-Package> | |||
!org.wso2.carbon.utils.resolver, | |||
org.wso2.carbon, | |||
org.wso2.carbon.keystore.persistence.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets make only the interfaces as exposed, keeping the Registry impl internal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will change this with the next PR when introducing KeyStorePersistenceManagerFactory
....carbon.utils/src/main/java/org/wso2/carbon/keystore/persistence/model/KeyStoreMetadata.java
Outdated
Show resolved
Hide resolved
core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/util/KeyStoreManager.java
Outdated
Show resolved
Hide resolved
core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/util/KeyStoreManager.java
Outdated
Show resolved
Hide resolved
PR builder started |
PR builder completed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/12301531944
Purpose
Move keystore persistence manager implementations to org.wso2.carbon.utils component
Details
This pull request includes significant changes to the key store management system, focusing on improving security and modularizing the code. The primary changes involve updating the
KeyStoreManager
class, refactoring theKeyStorePersistenceManager
interface, and modifying thepom.xml
files to reflect these updates.Key Store Management Improvements:
KeyStoreManager
class to useKeyStoreModel
for key store operations, enhancing security by encrypting and decrypting passwords. [1] [2] [3] [4] [5] [6] [7]KeyStoreManager
to ensure sensitive data is securely handled.Code Refactoring:
KeyStorePersistenceManager
interface to a new package,org.wso2.carbon.keystore.persistence
, and updated its methods to useKeyStoreModel
. [1] [2] [3] [4] [5]KeyStoreManager.java
to reflect the new structure.Dependency and Configuration Updates:
pom.xml
files to update package exports and dependencies, ensuring the new package structure is correctly referenced. [1] [2]Testing and Data Holder Updates:
KeyStoreManagerTest.java
to useOSGiDataHolder
instead ofCarbonCoreDataHolder
. [1] [2]New Constants Class:
PersistenceManagerConstants
class to centralize constants used in the persistence manager.