Talend Studio 中设置更新存储库的基本身份认证 - 8.0

Talend安装指南

Version
8.0
Language
中文(简体)
Operating system
Mac
Subscription type
订阅
Product
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Activity Monitoring Console
Talend Administration Center
Talend Artifact Repository
Talend CommandLine
Talend Data Preparation
Talend Data Stewardship
Talend ESB
Talend Identity and Access Management
Talend Installer
Talend JobServer
Talend Log Server
Talend MDM Server
Talend MDM Web UI
Talend Runtime
Talend SAP RFC Server
Talend Studio
Content
安装和升级
Last publication date
2022-10-30

如果您安装了 Talend 提供的 8.0 R2022-09 Talend Studio 月度更新或更高版本的更新,Talend Studio 支持通过 Eclipse 安全存储器实现的更新存储库基本身份认证。

有关更新存储库的更多信息,请参阅 为 Talend Studio 及持续集成设置更新存储库。有关 Eclipse 安全存储器的更多信息,请参阅 Secure storage

如果更新存储库启用了基本身份认证,在 Talend Studio 中设置更新存储库后,当您打开特性管理器或者重启 Talend Studio 后,会弹出 Authentication (认证) 对话框,允许您输入更新存储库的用户名和密码。

如果您安装了 Talend 提供的 8.0 R2023-03 Talend Studio 月度更新或其后的更新版本,Talend Studio 允许您在 Preferences (首选项) 对话框中的 Talend > Update settings (更新设置) 视图上设置更新存储库的凭据。有关配置更新存储库的更多信息,请参阅 Configuring update repositories (英文版)

注: 如果 Talend Studio 特性包的更新存储库和 Talend Studio 更新的更新存储库部署在不同的服务器上,会为每个存储库弹出一次 Authentication (认证) 对话框。

Eclipse 安全存储器使用主密码来进行数据的加解密。默认情况下:

  • 更新存储库的用户名和密码通过默认的 PBEWithMD5AndDES 加密算法及自动生成的主密码进行加解密。
  • 加密后的用户名和密码保存在 Eclipse 默认密钥环文件 ~/.eclipse/org.eclipse.equinox.security/secure_storage 中。

然而,自动生成的主密码和 Eclipse 默认密钥环文件不可移植。如果您需要与其他 Talend Studio 实例分享主密码和密钥环文件,或者需要在 Talend CommandLine 中或持续集成环境中验证更新存储库的基本身份认证,请按照下述步骤定制主密码和密钥环文件。此外,您还可以定制加密算法以强化安全。

步骤

  1. 定制加密算法:
    1. 启动 Talend Studio.
    2. 在菜单栏单击 Window (窗口) > Preferences (首选项) 以打开 Preferences (首选项) 对话框。
    3. 展开 General > Security (常规 > 安全),然后单击 Secure Storage (安全存储器) 打开相应的页面。
    4. Advanced (高级) 页签,点击下拉列表选择您想使用的算法。
    5. 单击 Apply and Close (应用并关闭) 保存您的设置并关闭对话框。
  2. 定制主密码及密钥环文件:
    1. 创建一个新文件,比如 mymasterpassword,用来保存主密码,然后将您的主密码添加到这个文件中。
      主密码可以是您想用的任何字串。
    2. 在对应您的操作系统的 Talend Studio .ini 文件的开头位置添加下述行,其中 <keyring-file-path> 为密钥环文件的绝对路径,<master-password-file-path> 为主密码文件的绝对路径。
      -eclipse.keyring
      <keyring-file-path>
      -eclipse.password
      <master-password-file-path>
    3. 重启 Talend Studio 以使您的更改生效。
      验证更新存储库基本身份认证后,您的用户名和密码保存在定制的密钥环文件中,这样您就可以在 Talend CommandLine 中,持续集成环境中,或其他 Talend Studio 实例中使用定制的主密码文件及定制的密钥环文件了。