Skip to content

feat: adapt secret resolver for custumization#210

Closed
betinacosta wants to merge 5 commits into
mainfrom
feat/adapt-secret-resolver-for-custumization
Closed

feat: adapt secret resolver for custumization#210
betinacosta wants to merge 5 commits into
mainfrom
feat/adapt-secret-resolver-for-custumization

Conversation

@betinacosta

Copy link
Copy Markdown
Member

Disclaimer: Do not include SAP-internal or customer-specific information in this PR (e.g. internal system URLs, customer names, tenant IDs, or confidential configurations). This is a public repository.

Description

Provide a clear description of your changes here.

Related Issue

Closes #<issue_number>

(Link to the GitHub issue this PR addresses)

Type of Change

Please check the relevant option:

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Code refactoring
  • Dependency update

How to Test

Describe how reviewers can test your changes:

  1. Step 1
  2. Step 2
  3. Expected result

Checklist

Before submitting your PR, please review and check the following:

  • I have read the Contributing Guidelines
  • I have verified that my changes solve the issue
  • I have added/updated automated tests to cover my changes
  • All tests pass locally
  • I have verified that my code follows the Code Guidelines
  • I have updated documentation (if applicable)
  • I have added type hints for all public APIs
  • My code does not contain sensitive information (credentials, tokens, etc.)
  • I have followed Conventional Commits for commit messages

Breaking Changes

If this PR introduces breaking changes, please describe:

  • What breaks
  • Migration path for users
  • Alternative approaches considered

Additional Notes

Add any additional context, screenshots, or information that would help reviewers.

@betinacosta betinacosta requested a review from a team as a code owner July 6, 2026 19:26
@betinacosta betinacosta marked this pull request as draft July 6, 2026 19:27
protocol — no inheritance required.
"""

def resolve(self, module: str, instance: str, target: Any) -> None:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should have some resolve that directly gets a path or env var name and resolve it to offer more flexibility. We should also have default values for what managed runtime exposes.

"""Load secrets from environment variables."""
normalized_module = module.replace("-", "_")
normalized_instance = instance.replace("-", "_")
_load_from_env(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe split each resolver in a file and have whole resolution logic there. So reimplement _load_from_env here.

@betinacosta betinacosta closed this Jul 8, 2026
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