forked fromANT0071/coder
- Notifications
You must be signed in to change notification settings - Fork0
Commit1354d84
authored
chore: refactor instance identity to be a SessionTokenProvider (coder#19566)
Refactors Agent instance identity to be a SessionTokenProvider.Refactors the CLI to create Agent clients via a centralized function, rather than add-hoc via individual command handlers and their flags.This allows commands besides `coder agent`, but which still use the agent identity, to support instance identity authentication.Fixescoder#19111 by unifying all API requests to go thru the SessionTokenProvider for auth credentials.1 parentee35ad3 commit1354d84
File tree
35 files changed
+632
-470
lines changed- agent
- agenttest
- cli
- testdata
- coderd
- prometheusmetrics
- insights
- workspaceapps/apptest
- codersdk
- agentsdk
- toolsdk
- docs/reference/cli
- enterprise/coderd
- scaletest
- createworkspaces
- workspacebuild
35 files changed
+632
-470
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
| |||
99 | 98 | | |
100 | 99 | | |
101 | 100 | | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | 134 | | |
140 | 135 | | |
141 | 136 | | |
| |||
172 | 167 | | |
173 | 168 | | |
174 | 169 | | |
175 | | - | |
176 | 170 | | |
177 | 171 | | |
178 | 172 | | |
| |||
203 | 197 | | |
204 | 198 | | |
205 | 199 | | |
206 | | - | |
207 | 200 | | |
208 | 201 | | |
209 | 202 | | |
| |||
212 | 205 | | |
213 | 206 | | |
214 | 207 | | |
215 | | - | |
216 | 208 | | |
217 | 209 | | |
218 | 210 | | |
| |||
254 | 246 | | |
255 | 247 | | |
256 | 248 | | |
257 | | - | |
258 | 249 | | |
259 | 250 | | |
260 | 251 | | |
| |||
916 | 907 | | |
917 | 908 | | |
918 | 909 | | |
919 | | - | |
| 910 | + | |
920 | 911 | | |
921 | | - | |
| 912 | + | |
922 | 913 | | |
923 | | - | |
924 | 914 | | |
925 | 915 | | |
926 | 916 | | |
| |||
1359 | 1349 | | |
1360 | 1350 | | |
1361 | 1351 | | |
1362 | | - | |
| 1352 | + | |
1363 | 1353 | | |
1364 | 1354 | | |
1365 | 1355 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
2926 | 2925 | | |
2927 | 2926 | | |
2928 | 2927 | | |
| 2928 | + | |
2929 | 2929 | | |
2930 | 2930 | | |
2931 | 2931 | | |
2932 | | - | |
2933 | | - | |
| 2932 | + | |
2934 | 2933 | | |
2935 | 2934 | | |
2936 | 2935 | | |
| |||
2942 | 2941 | | |
2943 | 2942 | | |
2944 | 2943 | | |
2945 | | - | |
| 2944 | + | |
2946 | 2945 | | |
2947 | 2946 | | |
2948 | | - | |
| 2947 | + | |
2949 | 2948 | | |
2950 | | - | |
2951 | | - | |
2952 | | - | |
2953 | | - | |
2954 | 2949 | | |
2955 | 2950 | | |
2956 | 2951 | | |
2957 | 2952 | | |
2958 | 2953 | | |
2959 | | - | |
2960 | | - | |
2961 | | - | |
2962 | | - | |
2963 | | - | |
2964 | | - | |
2965 | | - | |
| 2954 | + | |
| 2955 | + | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
| 2960 | + | |
| 2961 | + | |
2966 | 2962 | | |
2967 | 2963 | | |
2968 | 2964 | | |
| |||
2984 | 2980 | | |
2985 | 2981 | | |
2986 | 2982 | | |
2987 | | - | |
2988 | | - | |
2989 | | - | |
2990 | 2983 | | |
2991 | 2984 | | |
2992 | 2985 | | |
| |||
3015 | 3008 | | |
3016 | 3009 | | |
3017 | 3010 | | |
3018 | | - | |
3019 | | - | |
3020 | | - | |
3021 | 3011 | | |
3022 | 3012 | | |
3023 | 3013 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | | - | |
35 | | - | |
| 33 | + | |
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 38 | | |
47 | 39 | | |
48 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
93 | 119 | | |
94 | 120 | | |
95 | 121 | | |
| |||
0 commit comments
Comments
(0)