Security considerations for macOS Keychain
mainOn macOS, any Python script or application can access secrets created by keyring from that same Python executable without the operating system prompting the user for a password.
To require a password prompt every time a specific secret is accessed:
- Open the Keychain Access application.
- Locate the credential.
- In Access Control settings, remove Python from the list of allowed applications.