(转)SSIS Package Protection Level

本文详细解析了SQL Server Integration Services (SSIS)中的保护级属性设置,包括DontSaveSensitive、EncryptSensitiveWithUserKey、EncryptSensitiveWithPassword、EncryptAllWithPassword等选项的工作原理和应用场景,帮助理解如何在不同环境下选择合适的保护方式。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

转自:https://blog.youkuaiyun.com/ma_jiang/article/details/8768377
 
DontSaveSensitive

 

When the package is saved, sensitive values will be removed. This will result in passwords needing to be supplied to the package, through a configuration file or by the user.

 

EncryptSensitiveWithUserKey

 

This will encrypt all sensitive data on the package with a key based on the current user profile. This sensitive data can only be opened by the user that saved it. It another user opens the package, all sensitive information will be replaced with blanks. This is often a problem when a package is sent to another user to work on.

 

EncryptSensitiveWithPassword

 

Sensitive data will be saved in the package and encrypted with a supplied password. Every time the package is opened in the designer, you will need to supply the password in order to retrieve the sensitive information. If you cancel the password prompt, you will be able to open the package but all sensitive data will be replaced with blanks. This works well if a package will be edited by multiple users.

 

EncryptAllWithPassword

 

This works the same as EncryptSensitiveWithPassword except that the whole package will be encrypted with the supplied password. When opening the package in the designer, you will need to specify the password or you won’t be able to view any part of the package.

 

EncryptAllWithUserKey

 

This works the same as EncryptSensitiveWithUserKey except that the whole package will be encrypted. Only the user that created the package will be allowed to open the package.

 

ServerStorage

 

This option will use SQL Server database roles to encrypt information. This will only work if the package is saved to an SSIS server for execution.

 

So that’s it. This option is pretty basic but it is important to understand so that you can be spared unnecessary frustration.

 

SSIS的保护级属性可以为以下值:
DontSaveSensitive:敏感数据,比如用户鉴定数据,不能保存在包中。在日后使用SSIS Designer打开包时,不存在敏感数据,所以用户需要提供敏感数据。所有“敏感的”保护级属性中,只有包中的敏感数据会受到影响,包的其余部分不变。
EncryptSensitiveWithUserKey:敏感数据包存为包的一部分,但是该数据是用基于创建或者输出包的用户的密钥加密的,只有创建包的用户才能运行它。如果其他用户使用SSIS Designer打开包,前面的敏感数据仍然是加密的,并且SSIS Designer打开的是没有敏感数据的包。
EncryptSensitiveWithPassword:敏感数据保存为包的一部分,但是该数据由包创建或输出时用户提供的密钥加密。如果其他用户使用SSIS Designer打开包,那么他必须有访问加密的数据的密码。如果他不知道密码,SSIS Designer打开的是没有敏感数据的包。
EncryptAllWithPassword:整个包的内容由包创建或输出时用户提供的密码加密。当在SSIS Designer中打开包时,用户必须提供包的密码,如果他不知道密码,他就不能访问包。
EncryptAllWithUserKey:整个包的内容由一个基于创建或输出包的用户的密钥加密,只有创建包的用户才能打开它。
ServerStorage:没有包对包进行加密,取而代之的是,基于数据库的对象访问安全保护的包的内容。如果使用ServerStorage值,包就必须被保存到SQL Server,保存在MSDB数据库的sysdtspackages90表中,它不能被保存到文件系统。
如果正使用保护级属性ServerStorage,可以通过使用SQL Server数据库角色对保存在数据库中的包进行访问控制,这就产生了问题,包应该保存在什么地方?在SQL Server 2005中存储包很灵活,既可以保存在MSDB中,也可以保存在文件系统中,因此保存策略值得考虑。这是我的观点:在开发和创造期间,最好是在文件系统中存储,尤其在使用源控制工具的时候,就像我期待的那样。当向操作的系统进行部署时,将包导入到MSDB是很有意义的。最高的安全级别在MSDB中,而且MSDB包含在你公司的意外事故计划中。这是指运作人员不必盯着文件系统以便收集和备份SSIS任务,他们只要备份MSDB就行,怎么实现都可以。同时,你应该考虑,保护整个服务器安全是不是比在包级上使用证书更有意义,使用证书会有一些风险,应该了解这些风险。

转载于:https://www.cnblogs.com/Impulse/articles/11194018.html

SSIS(SQL Server Integration Services)中,"包保护级别"(Package Protection Level)是用于指定SSIS包的安全性设置的选项。它定义了如何保护和加密SSIS包中的敏感信息,例如连接字符串、密码等。 SSIS提供了四个不同的包保护级别: 1. 不加密(Do not save sensitive):此级别不对敏感信息进行加密或保护。在这种级别下,敏感信息以纯文本形式存储在SSIS包文件中。这意味着任何有权访问包文件的人都可以查看和修改敏感信息。这是最低级别的保护,不建议在生产环境中使用。 2. 加密敏感信息以保护包(Encrypt sensitive with password):该级别要求使用密码对敏感信息进行加密,并保存在SSIS包中。在运行时,需要提供正确的密码才能解密和使用敏感信息。这种方式可以在一定程度上保护敏感信息,但仍然需要注意密码的安全性。 3. 加密所有的敏感信息(Encrypt all with password):该级别要求使用密码对整个SSIS包进行加密。所有敏感信息,包括连接字符串、密码等,都会被加密保存。在运行时需要提供正确的密码才能解密和使用包中的任何信息。这种方式提供了更高级别的保护,但也需要注意密码的安全性。 4. 使用用户密钥保护敏感信息(Encrypt sensitive with user key):此级别使用当前用户的Windows用户密钥来保护敏感信息。只有具有相同密钥的用户才能解密和使用敏感信息。这种方式提供了较高的安全级别,但需要确保用户密钥的保密性和完整性。 选择适当的包保护级别取决于具体的安全需求和环境。在生产环境中,通常建议使用较高的保护级别来保护敏感信息,并采取额外的安全措施来保护密码或密钥的安全性。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值