如何在不使用工作室的情况下更改上下文文件中的加密密码
我正在使用组上下文来配置数据库连接。数据库的密码具有密码类型。部署作业时,密码会在默认值中自动加密。 如果我想在不使用工作室(在客户端环境上)更改密码怎么办?我可以用什么来加密新密码?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我正在使用组上下文来配置数据库连接。数据库的密码具有密码类型。部署作业时,密码会在默认值中自动加密。 如果我想在不使用工作室(在客户端环境上)更改密码怎么办?我可以用什么来加密新密码?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
我能够通过使用TJAVA组件创建单独的加密作业和以下代码来做到这一点:
whene context.password是类型字符串的输入上下文变量。运行作业时,提示用户输入密码,然后打印加密的TALEND密码。它将具有以下格式:enc:groadine.encryption.key.v1:[EncryptedPassword]如果需要,可以通过以下链接修改例程加密密钥:
I was able to do it by creating a separate encryption job with a tjava component and the following code:
where context.Password is an input context variable of type String. When running the job, the user is prompted to enter a password and then the encrypted Talend password will be printed. It will have the following format: enc:routine.encryption.key.v1:[encryptedPassword] The routine encryption key can be modified if needed by following this link: https://help.talend.com/r/en-US/8.0/installation-guide-data-integration-windows/rotating-encryption-keys-in-talend-studio
实际上,有几种方法:
myjob.sh - -Context_param mypassword = pass123
不幸的是,任何人都可以通过PS / Task Manager看到。
您还可以编辑上下文/上下文名称。这样,只有在您可以访问文件时才能看到上下文。
从理论上讲,两者都应该能够接受clearText/加密密码。
隐式上下文负载功能也可以用于加载上下文: https://help.talend.com/r/r/en-us/8.0/data-integration-job-job-examples/creating-job-anding-job-anding-job-and-defining-contining-context-context-variables < /a>
There's actually a few ways for this:
myJob.sh --context_param myPassword=pass123
this unfortunately can be seen by anyone via ps / task manager.
You can also edit the contexts/contextName.properties file and change the context parameters there. This way the context can only be seen if you have access to the file.
Theoretically both should be able to accept the cleartext/encrypted password.
Implicit context load feature can also be used to load contexts: https://help.talend.com/r/en-US/8.0/data-integration-job-examples/creating-job-and-defining-context-variables