Commit efd736a
committed
fix(keyring): read keyring.key as fallback when env var not set
After keyring auto-setup, the password is saved to keyring.key and
credentials.env is sourced in the shell profile — but only for new
shell sessions. In the current session, subsequent wk commands failed
because WK_KEYRING_PASSWORD wasn't in the environment yet.
Now fileKeyringPasswordFunc reads keyring.key directly as a fallback,
so all wk commands work immediately after auth without requiring
manual `source credentials.env`.1 parent 42db3a1 commit efd736a
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
141 | 158 | | |
142 | 159 | | |
143 | 160 | | |
| |||
0 commit comments