Skip to content

feat: [Connectivity] Dynamic Keystore in HttpDestination#1202

Open
MatKuhr wants to merge 6 commits into
mainfrom
feat/dynamic-destination-keystore
Open

feat: [Connectivity] Dynamic Keystore in HttpDestination#1202
MatKuhr wants to merge 6 commits into
mainfrom
feat/dynamic-destination-keystore

Conversation

@MatKuhr

@MatKuhr MatKuhr commented Jun 11, 2026

Copy link
Copy Markdown
Member

Context

Follow-up for #1142

Allows in-place rotation for destination keystore to fully support #1134

Feature scope:

  • Extend DefaultHttpDestination to support Supplier<Keystore>
  • Extend OAuth2ServiceBindingDestinationLoader and related classes to use this capability
  • Ensure no new public API is introduced

Definition of Done

  • Functionality scope stated & covered
  • Tests cover the scope above
  • Error handling created / updated & covered by the tests above
  • Documentation updated
  • Release notes updated

MatKuhr added 3 commits April 16, 2026 19:15
…ion-keystore

# Conflicts:
#	cloudplatform/connectivity-oauth/src/main/java/com/sap/cloud/sdk/cloudplatform/connectivity/OAuth2Options.java
@MatKuhr MatKuhr added the please review Request to review a pull request label Jun 11, 2026
* The {@link KeyStore} to be used when communicating over HTTP.
*/
@Nonnull
public Builder keyStore( @Nullable final KeyStore keyStore )

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

no new public API, just replaces the previous public @Setter

@Nullable
private final KeyStore keyStore;
@Nonnull
private final Supplier<Option<KeyStore>> keyStore;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Supplier<Option<KeyStore>> looks a bit strange, but this is because allowing a supplier to return null is often dangerous (especially, because our current annotations don't allow declaring Supplier<@Nullable KeyStore>). This solution was the least un-intuitive variant I could find that allows for the KeyStore to be null but still using a supplier.

@MatKuhr MatKuhr marked this pull request as ready for review June 12, 2026 10:14
@MatKuhr MatKuhr added the please merge Request to merge a pull request label Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

please merge Request to merge a pull request please review Request to review a pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant