[Spike] Consumer Details Rotation Mgmt on Managed Connected App

定期轮换Salesforce连接应用的消费者键和密钥是安全实践,但会影响所有集成并需要更新。对于未自动升级的订阅者,他们需手动升级管理包并可能重新生成访问令牌。供应商在内置管理包模式下可完全管理消费者详情,包括旋转详细信息,但此操作会撤销所有关联的访问和刷新令牌。

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

Summary

As an ISV, It’s important to prioritize security best practices, even though connected app is only used for canvas UI integration. Rotating consumer key and secret is essential to minimize the impact of potential access breaches. However, you should be more careful in managing the rotation process to ensure all subscribers are compatible with the changes.

For group subscribers who aren’t included in auto-upgrade lists, you can consider using a communication plan to notify them about updates and the consequences if they couldn’t update the app. Also, you can provide them guidance about how to update the consumer details or suggest discussing it with their Salesforce administrator.

Q&A

Q1. Is it the best practice to periodically rotate the consumer key & consumer secret in salesforce connected app?

It is generally recommended to rotate the consumer key & consumer secret periodically for Salesforce connected apps as a security best practice. This can help prevent unauthorized access to your Salesforce org in case of a compromised connected app.
However, it’s important to note that when you rotate the consumer secret for a connected app, all integrations that use this app will be impacted and need to be updated with the new secret. It’s also important to follow any relevant documentation or best practices provided by the connected app’s vendor.

Q2. If ISV rotates the consumer details in managed connected app, shall we upgrade the package and force subscriber to update the managed package?

Yes, if an ISV rotates the consumer key/secret for a Connected App that is part of a Managed Package, then they need to release a new version of the Managed Package with the updated credentials. The subscribers can then upgrade the package to the latest version which will have the latest credentials related to the Connected App.

Q3. But for the subscribers who are not in auto-upgrade user list, what impact will they have?

If the subscriber does not automatically receive upgrades, they will need to manually upgrade their managed packages to get the new version. If the changes made by the ISV require a refreshed access token, the subscriber will need to regenerate an access token before the new Consumer Key and Consumer Secret can be used.

Explore in SF

Subscriber’s Perspective - Managed Connected App Mode

Managed Connected App is installed in my SF org, we only have Manage permission.
在这里插入图片描述

Click the Manage action, we can go to the detail page, only can edit policies, view the OAuth Usage and uninstall the managed connected app.
在这里插入图片描述
For policy edition, we can only edit the following info.
在这里插入图片描述
For OAuth Usage, we can check the following info.
在这里插入图片描述
Summary: In this mode, subscriber cannot check & reveal the consumer key & secret, because the credentials are totally managed by vendor.

Vendor’s Perspective - Built-in Managed Package Mode

Highlighted managed package is built-in by myself, we can totally manage, view & edit the app.
在这里插入图片描述
Click the View action, we can go to the configuration page, and manage consumer details.
在这里插入图片描述
Check consumer details, we can generate staged consumer key & secret, and apply the staged version to integration usage.
在这里插入图片描述
Click Generate button, staged version (new value) has been initialed.
在这里插入图片描述
Then click Apply button, we will see the following tips.

After the new details are applied, only the new consumer details are valid.

在这里插入图片描述
Summary: in this mode, we can rotate the consumer details. But all access and refresh tokens associated with the connected app are revoked, you have to update the new consumer details in your integration.

Learn from Identity & Access Architect Certification for Winter ’23

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值