- Notifications
You must be signed in to change notification settings - Fork1
Commit94b329f
authored
impl: store last used URL in Toolbox Settings Store (#200)
Context: Toolbox can store key/value pairs in two places:- a settings store which is backed by a clear text json file per eachplugin- native keystore for sensitive dataAt the same time some of Coder's clients (ex: Netflix) would like todeploy at scale preconfigured settings for Toolbox. Most of the neededsettings are part of json backed store except the last used URL.This PR reworks the code around the last used URL/token and moves theURL in the json backed store, making it easy to configure. At the sametime we still support the pair stored in the native keystore forbackward compatibility reasons.1 parent08c2912 commit94b329f
File tree
9 files changed
+37
-37
lines changed- src/main/kotlin/com/coder/toolbox
- settings
- store
- views
9 files changed
+37
-37
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 |
| |
6 | 10 |
| |
7 | 11 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
11 | 10 |
| |
12 | 11 |
| |
13 | 12 |
| |
| |||
364 | 363 |
| |
365 | 364 |
| |
366 | 365 |
| |
367 |
| - | |
368 |
| - | |
| 366 | + | |
| 367 | + | |
369 | 368 |
| |
370 | 369 |
| |
371 | 370 |
| |
| |||
399 | 398 |
| |
400 | 399 |
| |
401 | 400 |
| |
402 |
| - | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
403 | 404 |
| |
404 | 405 |
| |
405 | 406 |
| |
406 |
| - | |
| 407 | + | |
407 | 408 |
| |
408 |
| - | |
409 |
| - | |
| 409 | + | |
410 | 410 |
| |
411 | 411 |
| |
412 | 412 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
43 | 42 |
| |
44 | 43 |
| |
45 | 44 |
| |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
50 | 48 |
| |
51 | 49 |
| |
52 | 50 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
11 | 17 |
| |
12 | 18 |
| |
13 | 19 |
| |
|
Lines changed: 5 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
29 | 16 |
| |
30 | 17 |
| |
31 | 18 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
| 39 | + | |
39 | 40 |
| |
40 | 41 |
| |
41 | 42 |
| |
| |||
155 | 156 |
| |
156 | 157 |
| |
157 | 158 |
| |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
158 | 163 |
| |
159 | 164 |
| |
160 | 165 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 |
| - | |
| 5 | + | |
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
66 |
| - | |
67 |
| - | |
| 66 | + | |
| 67 | + | |
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
|
0 commit comments
Comments
(0)