Commit 8d7a767
Add values.schema.json and redact secrets from error messages
- Add config.apiServerEndpoint to charts/headlamp/values.schema.json
- Redact user-supplied endpoints from error messages to prevent secret logging
- For credentials/query/fragment errors: omit endpoint completely
- For scheme errors: include only scheme+host (safe parts)
- For path errors: include scheme+host+path (safe parts)
- All 14 validation tests still pass
- JSON schema valid
Addresses security concern about logging secrets in error messages.
Co-authored-by: illume <9541+illume@users.noreply.github.com>1 parent 738c6e0 commit 8d7a767
File tree
2 files changed
+16
-12
lines changed- backend/pkg/kubeconfig
- charts/headlamp
2 files changed
+16
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
| 1014 | + | |
1014 | 1015 | | |
1015 | | - | |
1016 | | - | |
| 1016 | + | |
1017 | 1017 | | |
1018 | 1018 | | |
1019 | 1019 | | |
1020 | 1020 | | |
| 1021 | + | |
1021 | 1022 | | |
1022 | | - | |
1023 | | - | |
| 1023 | + | |
| 1024 | + | |
1024 | 1025 | | |
1025 | 1026 | | |
1026 | 1027 | | |
1027 | 1028 | | |
| 1029 | + | |
1028 | 1030 | | |
1029 | 1031 | | |
1030 | | - | |
1031 | | - | |
| 1032 | + | |
1032 | 1033 | | |
1033 | 1034 | | |
1034 | 1035 | | |
1035 | 1036 | | |
1036 | 1037 | | |
1037 | | - | |
1038 | | - | |
| 1038 | + | |
1039 | 1039 | | |
1040 | 1040 | | |
1041 | 1041 | | |
1042 | 1042 | | |
1043 | 1043 | | |
1044 | | - | |
1045 | | - | |
| 1044 | + | |
1046 | 1045 | | |
1047 | 1046 | | |
1048 | 1047 | | |
1049 | 1048 | | |
| 1049 | + | |
1050 | 1050 | | |
1051 | | - | |
1052 | | - | |
| 1051 | + | |
| 1052 | + | |
1053 | 1053 | | |
1054 | 1054 | | |
1055 | 1055 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
248 | 252 | | |
249 | 253 | | |
250 | 254 | | |
| |||
0 commit comments