Working with macro signatures

本文介绍了 Kentico 系统中宏表达式的安全签名机制及如何处理因 hash salt 值改变导致的宏签名失效问题。当 hash salt 发生变化时,如通过 web.config 设置新的 salt 值、使用内容发布转移包含宏的数据到另一个实例或应用程序连接字符串发生变化时,现有宏表达式的签名会变得无效。文章提供了重新生成宏签名的方法。

https://docs.kentico.com/k11/macro-expressions/troubleshooting-macros/working-with-macro-signatures

 

update macro signatures

Whenever a user saves a macro expression, the system automatically adds a security signature containing the user name of the macro's author and a hash of the expression. The hash function also appends a salt to the input. By default, the system uses a randomly generated GUID as the salt.

If your application's hash salt value changes, the security signatures of existing macro expressions become invalid. This may lead to problems with unresolved macros in certain scenarios:

  • After setting a new salt via the CMSHashStringSalt web.config key.
  • When using content staging to transfer data containing macros to another instance with a different hash salt.
  • If your application does not have a custom hash salt, and the connection string has changed (for example when moving to a different server or after setting a new database password).

 

To re-sign all occurrences of macros in the system, enter the appropriate hash salt values and click Update macro signatures.

转载于:https://www.cnblogs.com/chucklu/p/8417644.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值