Look into the UI component where secrets are added (likely in a form component). Add a button that generates a random password using cryptographically secure methods (e.g., window.crypto). Implement a simple function to generate passwords with configurable length and character set. Ensure the generated password populates the secret field. Check if any existing password generation utilities are used in the codebase. The change should be localized to one component.