Problem description: The "Refresh" (rotate) and "Copy" buttons in the Credentials/Secrets modal are placed too close together, causing users to accidentally trigger a secret rotation when they intended to copy the token. This has already been reported by multiple customers and has impacted entire organizations by invalidating active secrets without warning.
Current behavior: The rotate secret button and the copy button are adjacent, with no sufficient visual separation. Although a confirmation dialog exists after clicking rotate, the proximity of the buttons makes accidental clicks easy — especially for users unfamiliar with the layout.
Expected behavior / proposed solution: Either of the following improvements:
Increase the spacing/separation between the "Refresh" and "Copy" buttons to reduce accidental clicks.
Add a more prominent confirmation dialog with a clear warning before executing a secret rotation (e.g., "You are about to rotate your secret. All integrations using the current secret will stop working. Are you sure?").
Impact: Accidentally rotating a secret invalidates all active integrations and automations using that credential across the entire organization, requiring immediate remediation.
Related FR: This is related to the existing FR: User approval when doing Client Secret rotation [User approval FR]