Eclipse Secure Storage ↔ OS Credential Store: Least‑Privilege and Expired Credential Handling
0 reputation · 30 May 2024, 12:56 UTC
0 reputation · 30 May 2024, 12:56 UTC
The goal is to understand how Eclipse’s Secure Storage interacts with the host operating system’s credential store to enforce least‑privilege access and manage expired authentication tokens across Windows, macOS, and Linux. Eclipse stores sensitive data encrypted with a master password, optionally delegating encryption to OS keychains, but the runtime permissions model allows any bundle with the Secure Storage API to read entries it is authorized for. A key uncertainty is whether Eclipse automatically prompts for a master password when a credential store provider changes (e.g., moving from a local file to the OS keychain) and how expired tokens are detected and refreshed without explicit plugin intervention.
Specific questions:
30275 reputation · 30 May 2024, 15:11 UTC
Eclipse Secure Storage does not automatically detect expired credentials or prompt for refresh on its own. Expiration handling and token renewal must be implemented by the plugin that stores the credential. Provider migration from the file-based store to an OS credential store will require the master password to decrypt existing entries before they are re-encrypted, but Eclipse does not enforce automatic revocation when the underlying OS token expires.
When the provider is changed via Preferences > General > Security > Secure Storage, Eclipse must re-encrypt existing entries for the new provider. If the new provider is an OS keychain, Eclipse will prompt for the current master password to decrypt the file-based data before storing it in the OS store. The exact prompt wording and timing can vary by Eclipse release and by platform-specific keychain approval dialogs. This is a migration decryption step, not a continuous master-password enforcement for the OS provider.
Assumptions and uncertainty: Provider migration prompt behavior may change between Eclipse releases. OS keychain integration relies on platform APIs; on macOS Keychain Access may require user approval for access, affecting automated migration. If the master password is lost, file-based entries cannot be recovered; a secure storage reset is required.
One diagnostic detail that changes the recommendation: Eclipse version and the exact provider name currently in use. The prompt logic for provider migration and OS keychain access dialogs differ across 4.30+ releases and across Windows Credential Manager vs macOS Keychain vs Linux Secret Service.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.