Skip to content
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

feat: add env variable for enable key manager service #5442

Merged
merged 6 commits into from
Jul 29, 2024

Conversation

ArjunKarthik
Copy link
Contributor

@ArjunKarthik ArjunKarthik commented Jul 25, 2024

Type of Change

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

Description

This PR adds env variable for enabling encryption service. Application changes for encryption service is not backward compatible, so once the build is deployed and certified stable this feature will be enabled by setting up "true" to key_manager.enabled flag. Later only application starts using encryption service for encryption and decryption. Once the config is enabled it shouldn't be disabled.

Additional Changes

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

Motivation and Context

This PR adds env variable for enabling encryption service. Application changes for encryption service is not backward compatible, so once the build is deployed and certified stable this feature will be enabled by setting up "true" to key_manager.enabled flag. Later only application starts using encryption service for encryption and decryption.

How did you test it?

This can't be tested in Test environment, since it is already enabled in both

  1. key_manager.enabled: false and feature "encryption_service" disabled. Encryption and decryption happens within the application
  2. key_manager.enabled: true and feature "encryption_service" disabled. Encryption and decryption happens within the application
  3. key_manager.enabled: false and feature "encryption_service" enabled. Encryption and decryption happens within the application
  4. key_manager.enabled: true and feature "encryption_service" enabled. Encryption and decryption happens with encryption service. Once this is enabled can't be disabled.

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code

@ArjunKarthik ArjunKarthik added C-feature Category: Feature request or enhancement M-configuration-changes Metadata: This PR involves configuration changes labels Jul 25, 2024
@ArjunKarthik ArjunKarthik requested a review from dracarys18 July 25, 2024 11:50
@ArjunKarthik ArjunKarthik self-assigned this Jul 25, 2024
@ArjunKarthik ArjunKarthik requested a review from a team as a code owner July 25, 2024 11:50
@ArjunKarthik ArjunKarthik linked an issue Jul 25, 2024 that may be closed by this pull request
2 tasks
SanchithHegde
SanchithHegde previously approved these changes Jul 25, 2024
dracarys18
dracarys18 previously approved these changes Jul 25, 2024
jarnura
jarnura previously approved these changes Jul 26, 2024
@Gnanasundari24 Gnanasundari24 added this pull request to the merge queue Jul 26, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 26, 2024
@ArjunKarthik ArjunKarthik added this pull request to the merge queue Jul 26, 2024
@ArjunKarthik ArjunKarthik removed this pull request from the merge queue due to a manual request Jul 26, 2024
@ArjunKarthik ArjunKarthik enabled auto-merge July 26, 2024 17:21
@dracarys18 dracarys18 dismissed stale reviews from SanchithHegde, jarnura, and themself via 3f9ac3d July 29, 2024 06:46
@pixincreate pixincreate added the S-waiting-on-review Status: This PR has been implemented and needs to be reviewed label Jul 29, 2024
@ArjunKarthik ArjunKarthik added this pull request to the merge queue Jul 29, 2024
@ArjunKarthik ArjunKarthik removed the S-waiting-on-review Status: This PR has been implemented and needs to be reviewed label Jul 29, 2024
Merged via the queue into main with commit db26d32 Jul 29, 2024
13 of 14 checks passed
@ArjunKarthik ArjunKarthik deleted the keymanager-runtime-feature-flag branch July 29, 2024 09:25
ArjunKarthik added a commit that referenced this pull request Jul 29, 2024
Co-authored-by: dracarys18 <karthikey.hegde@juspay.in>
pixincreate added a commit that referenced this pull request Jul 30, 2024
* 'main' of github.com:juspay/hyperswitch:
  refactor(router): remove `connector_account_details` and `connector_webhook_details` in merchant_connector_account list response (#5457)
  feat: add env variable for enable key manager service (#5442)
  chore(version): 2024.07.29.0
  feat(payments): support sort criteria in payments list (#5389)
  refactor(connector):  add amount conversion framework to placetopay (#4988)
  feat(connector): [Bambora APAC] add mandate flow (#5376)
  ci: set code owners for payment methods files (#5453)
  refactor(opensearch): Add Error Handling for Empty Query and Filters in Request (#5432)
  chore: address Rust 1.80 clippy lints (#5447)
  feat(connector): [FISERV] Move connector to hyperswitch_connectors (#5441)
  ci: add support for just hack_v2 check for PRs (#5426)
  fix: added created at and modified at keys in PaymentAttemptResponse (#5412)
  refactor(merchant_account_v2): recreate id for `merchant_account` v2  (#5439)
  chore(version): 2024.07.26.0
  feat(events): forward the tenant configuration as part of the kafka message (#5224)
  refactor(connector):  add amount conversion framework to payone (#4981)
  refactor(user_roles): make org and merchant id nullable (#5353)
  fix(euclid): change the address taken in SessionFlowRouting from shipping to billing address (#5435)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category: Feature request or enhancement M-configuration-changes Metadata: This PR involves configuration changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] : Create env variable for enabling keymanager service
5 participants