-
Notifications
You must be signed in to change notification settings - Fork 22
Description
I have two keys set for my project, here is my secretspec.toml:
[project]
name = "dev-environment"
revision = "1.0"
[profiles.default]
# DATABASE_URL = { description = "Database connection string", required = true }
[profiles.development]
EINFRACZ_API_KEY = { description = "API key for einfracz" }
OPENROUTER_API_KEY = { description = "API Key for openrounter.ai" }after I rename the project name, I run secretspec check it shows ticks for both keys but they are empty inside the devenv shell.
I have my devenv.yaml as
secretspec:
enable: true
provider: keyring
profile: development
inputs:
nixpkgs:
...If I change the project name back, the keys are available again. I believe the behavior is correct that after change the project name I need to reset the keys, but the states are wrongly shown. Let me know if more debug info needed.
Is the provider "keyring" using linux native keyring or it uses desktop keyring?
UPDATE: I can confirmed using seahorse that shows keyring stored using desktop keyring not kernel keyring, and the key name has the project name with it that's why after rename the project lead to key not available.
Thus there are three unsound behaviors when secretspec interops with devenv:
- if no proper secret key which is set in the
secrectspec.yamlfound yet, the devenv command frozen. - ctrl+c not gracefully kill the process but frozen there.
- After press enter in the frozen session after ctrl+c, the process end but an empty key is created in my keyring app.