Repository navigation
Commit d38afa2
committed
feat: default coder.useKeyring to true and harden shared credential handling
Store session tokens in the OS keyring by default on macOS and Windows,
passing --use-keyring explicitly to CLI 2.29 and later. Model the CLI
store as shared (the CLI's own directory, or a user directory on 2.31+)
or private (a file in the extension's per-deployment directory), and
treat CODER_CONFIG_DIR like a user --global-config.
Record who minted each stored token so logout runs coder logout against
a shared store only for a token the extension created and the CLI still
holds. Ask before adopting the CLI's session for a different user. Show
an error with Open Settings when the CLI cannot store the token at
login, and a Show Output button when logout cannot remove every
credential.
Closes #11061 parent a91ae70 commit d38afa2
28 files changed
Lines changed: 1250 additions & 1290 deletions
File tree
- src
- core
- instrumentation
- login
- oauth
- remote
- settings
- util
- test/unit
- api
- core
- deployment
- login
- oauth
- remote
- uri
- util
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
8 | 31 | | |
9 | 32 | | |
10 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
708 | 708 | | |
709 | 709 | | |
710 | 710 | | |
711 | | - | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
712 | 718 | | |
713 | 719 | | |
714 | | - | |
715 | | - | |
716 | | - | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
717 | 730 | | |
718 | 731 | | |
719 | 732 | | |
| |||
790 | 803 | | |
791 | 804 | | |
792 | 805 | | |
793 | | - | |
| 806 | + | |
794 | 807 | | |
795 | 808 | | |
796 | 809 | | |
| |||
812 | 825 | | |
813 | 826 | | |
814 | 827 | | |
815 | | - | |
| 828 | + | |
816 | 829 | | |
817 | 830 | | |
818 | 831 | | |
| |||
0 commit comments