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

CipherTransformation wrong in encrypting plain text with secure vault - In K8 environment #3714

Open
dilshanfa opened this issue Nov 23, 2022 · 0 comments

Comments

@dilshanfa
Copy link
Contributor

dilshanfa commented Nov 23, 2022

Description

We have a requirement to Encrypting Secrets using WSO2 Secure Vault. Have followed this [1] documentation. In this we need to configure the CipherTransformation type as per the code [2] we can configure this from the pom file in the k8sampleKubernetesExporter pom file. When we configuring this there are different parameters that we can config from the Integration-Studio side these configurations are getting as a parameter from the code.

But when we configure the CipherTransformation that is not configuring correctly when creating the docker image.

[1] https://apim.docs.wso2.com/en/latest/install-and-setup/setup/mi-setup/security/encrypting_plain_text/#in-a-kubernetes-environment
[2] https://github.com/wso2/maven-tools/blob/master/wso2-mi-config-mapper/src/main/java/org/wso2/config/mapper/ConfigMapParserMojo.java#L120

Thank You
Dilshan

Steps to Reproduce

  1. In Integration studio create a new project with k8sampleKubernetesExporter
  2. Navigate to k8sampleKubernetesExporter and open the deployment.toml file
  3. Add this transformation type to the deployment.toml
[system.parameter]
"org.wso2.CipherTransformation" = "RSA/ECB/OAEPWITHSHA-256ANDMGF1PADDING"
  1. And then add this entry in the bottom of the file
[secrets]
SN_PASSWORD  = "[password_that_need_to_encrypt]"
  1. Save the changes and click Create and Publish Botton in the top left corner in Design View of the pom.xml

Affected Component

IntegrationStudio

Version

8.1.0

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

https://github.com/wso2-enterprise/wso2-apim-internal/issues/1173

Suggested Labels

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant