Skip to content

Conversation

@poojanilangekar
Copy link
Contributor

This change addresses all the TODOs found the org.polaris.core.secrets package.
Main changes:

  • Create a helper to parse, validate and build the URN strings.
  • Use Regex instead of String.split().
  • Add Precondition checks to ensure that the URN is valid and the UserSecretManager matches the expected type.
  • Remove the now unused GLOBAL_INSTANCE of the UnsafeInMemorySecretsManager.

Testing

  • Existing UnsafeInMemorySecretsManagerTest captures most of the functional changes.
  • Added UserSecretReferenceUrnHelperTest to capture the utilities exposed.

@poojanilangekar
Copy link
Contributor Author

CC @dennishuo @eric-maynard @XJDKC

Copy link
Contributor Author

@poojanilangekar poojanilangekar left a comment

Choose a reason for hiding this comment

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

Hey Eric, thanks for taking time to review the PR. I have implemented some of the changes you suggested and wanted to get some more clarity on the rest.

@poojanilangekar poojanilangekar requested a review from gh-yzou as a code owner June 13, 2025 18:50
@github-project-automation github-project-automation bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board Jun 13, 2025
@github-project-automation github-project-automation bot moved this from Ready to merge to Done in Basic Kanban Board Jun 13, 2025
@github-project-automation github-project-automation bot moved this from Done to PRs In Progress in Basic Kanban Board Jun 13, 2025
@eric-maynard eric-maynard enabled auto-merge (squash) June 18, 2025 16:28
auto-merge was automatically disabled June 18, 2025 19:54

Head branch was pushed to by a user without write access

@eric-maynard eric-maynard merged commit 45df8ac into apache:main Jun 18, 2025
12 checks passed
@github-project-automation github-project-automation bot moved this from PRs In Progress to Done in Basic Kanban Board Jun 18, 2025
@poojanilangekar poojanilangekar deleted the urn-regex branch June 24, 2025 22:36
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.

2 participants