Commit 62457c4
committed
fix: SPIRE Agent crash on fresh clones (tls: illegal parameter)
Root cause: tpmPlugin was nil on fresh clones because tpm_plugin_cli.py
path lookup only checked $HOME/AegisSovereignAI/..., which doesn't exist
for repos cloned elsewhere. Without tpmPlugin, PreferPKCS1v15 TLS policy
was not applied, causing Go to use RSA-PSS (default in TLS 1.3) which
the TPM App Key cannot sign with, resulting in 'tls: illegal parameter'.
Fixes:
- test_agents.sh: export TPM_PLUGIN_CLI_PATH before SPIRE agent start
- client.go: add binary-relative path detection + UDS-only fallback
Verified: all integration tests pass on fresh clone (10.1.0.10).1 parent 6f3f814 commit 62457c4
File tree
2 files changed
+31
-4
lines changed- hybrid-cloud-poc
- spire-fork/pkg/agent/client
2 files changed
+31
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2721 | 2721 | | |
2722 | 2722 | | |
2723 | 2723 | | |
| 2724 | + | |
| 2725 | + | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
2724 | 2734 | | |
2725 | 2735 | | |
2726 | 2736 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
150 | 161 | | |
151 | 162 | | |
152 | 163 | | |
| |||
155 | 166 | | |
156 | 167 | | |
157 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
158 | 174 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
164 | 181 | | |
165 | 182 | | |
166 | 183 | | |
| |||
0 commit comments