Commit 06545bc
committed
fix: add logging to authentication errors in controller and router
Log authentication failures in the controller service (Listen,
GetLease, RequestLease, ReleaseLease, ListLeases) and in the
Auth helpers (AuthClient, AuthExporter) which cover all ClientService
call sites.
Also log passphrase authentication failures in the Python exporter's
PassphraseInterceptor, where the logger was defined but never called.
Additionally fix the router JWT validation error code from
codes.InvalidArgument to codes.Unauthenticated, which is the
semantically correct code for a failed authentication.
Fixes #8111 parent f19e473 commit 06545bc
4 files changed
Lines changed: 31 additions & 3 deletions
File tree
- controller/internal/service
- auth
- python/packages/jumpstarter/jumpstarter/exporter
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
51 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
| 64 | + | |
| 65 | + | |
58 | 66 | | |
59 | 67 | | |
60 | 68 | | |
| |||
64 | 72 | | |
65 | 73 | | |
66 | 74 | | |
| 75 | + | |
67 | 76 | | |
68 | 77 | | |
69 | 78 | | |
70 | 79 | | |
71 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
72 | 83 | | |
73 | 84 | | |
74 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
| 527 | + | |
527 | 528 | | |
528 | 529 | | |
529 | 530 | | |
| |||
898 | 899 | | |
899 | 900 | | |
900 | 901 | | |
| 902 | + | |
| 903 | + | |
901 | 904 | | |
902 | 905 | | |
| 906 | + | |
903 | 907 | | |
904 | 908 | | |
905 | 909 | | |
| |||
977 | 981 | | |
978 | 982 | | |
979 | 983 | | |
| 984 | + | |
| 985 | + | |
980 | 986 | | |
981 | 987 | | |
| 988 | + | |
982 | 989 | | |
983 | 990 | | |
984 | 991 | | |
| |||
1031 | 1038 | | |
1032 | 1039 | | |
1033 | 1040 | | |
| 1041 | + | |
| 1042 | + | |
1034 | 1043 | | |
1035 | 1044 | | |
| 1045 | + | |
1036 | 1046 | | |
1037 | 1047 | | |
1038 | 1048 | | |
| |||
1062 | 1072 | | |
1063 | 1073 | | |
1064 | 1074 | | |
| 1075 | + | |
| 1076 | + | |
1065 | 1077 | | |
1066 | 1078 | | |
| 1079 | + | |
1067 | 1080 | | |
1068 | 1081 | | |
1069 | 1082 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
0 commit comments