Skip to content

feat(core): [proxy payments] send external vault proxy metadata to UCS#9108

Merged
likhinbopanna merged 2 commits intomainfrom
pass_vault_data_to_ucs
Sep 1, 2025
Merged

feat(core): [proxy payments] send external vault proxy metadata to UCS#9108
likhinbopanna merged 2 commits intomainfrom
pass_vault_data_to_ucs

Conversation

@Sakilmostak
Copy link
Contributor

@Sakilmostak Sakilmostak commented Aug 29, 2025

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

  • pass external vault proxy metadata to uce for injector consumption
  • it is passed in header as x-external-vault-metadata
  • base64 encoded for parsing compatibility

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

Not tested, need proxy module completely for testing

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

@Sakilmostak Sakilmostak self-assigned this Aug 29, 2025
@Sakilmostak Sakilmostak requested a review from a team as a code owner August 29, 2025 13:44
@Sakilmostak Sakilmostak added the A-core Area: Core flows label Aug 29, 2025
@Sakilmostak Sakilmostak requested a review from a team as a code owner August 29, 2025 13:44
@Sakilmostak Sakilmostak added C-feature Category: Feature request or enhancement A-payment-methods Area: Payment Methods labels Aug 29, 2025
@semanticdiff-com
Copy link

semanticdiff-com bot commented Aug 29, 2025

@su-shivanshmathur su-shivanshmathur linked an issue Aug 29, 2025 that may be closed by this pull request
2 tasks
Comment on lines +537 to +543
let unified_service_vault_metdata = match external_vault_connector {
api_enums::VaultConnectors::Vgs => {
let vgs_metadata: ExternalVaultConnectorMetadata = external_vault_metadata
.expose()
.parse_value("ExternalVaultConnectorMetadata")
.change_context(UnifiedConnectorServiceError::ParsingFailed)
.attach_printable("Failed to parse Vgs connector metadata")?;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: this can be a try_from

&self,
payment_authorize_request: payments_grpc::PaymentServiceAuthorizeRequest,
connector_auth_metadata: ConnectorAuthMetadata,
external_vault_proxy_metadata: Option<String>,
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: please add a comment that this will be a base 64 encode value

@likhinbopanna likhinbopanna added this pull request to the merge queue Sep 1, 2025
Merged via the queue into main with commit c02d8b9 Sep 1, 2025
29 of 33 checks passed
@likhinbopanna likhinbopanna deleted the pass_vault_data_to_ucs branch September 1, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-core Area: Core flows A-payment-methods Area: Payment Methods C-feature Category: Feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Payments V2 supporting External vault

5 participants