@@ -3,25 +3,14 @@ package server
33import "time"
44
55type Config struct {
6- // time.Duration fields first (8 bytes each)
7- VouchTimeout time.Duration
8- VouchCacheTTL time.Duration
9- DeviceCertHours time.Duration
10- RequestTimeout time.Duration
11- RetryMaxElapsed time.Duration
12-
13- // int fields next (4/8 bytes each)
14- VouchMaxEntries int
15- VouchRetryAttempts int
16- RetryMaxAttempts int
17-
18- // bool fields (1 byte each)
19- VouchEnabled bool
20- VouchRetryEnabled bool
21- VouchCircuitBreaker bool
22- TelemetryInsecure bool
23-
24- // string fields last (pointers - 8 bytes each + variable size)
6+ InventoryClientCert string
7+ InventoryClientKey string
8+ TelemetryEnv string
9+ TelemetryEndpoint string
10+ MFAServiceURL string
11+ TailscaleTailnet string
12+ TailscaleAPIKey string
13+ TailscaleListenAddr string
2514 HTTPAddr string
2615 GRPCAddr string
2716 TLSCertPath string
@@ -30,17 +19,21 @@ type Config struct {
3019 GoogleClientID string
3120 OPAURL string
3221 InventoryAPI string
33- InventoryClientCert string // Client certificate for mTLS to inventory service
34- InventoryClientKey string // Client private key for mTLS to inventory service
35- InventoryCA string // CA certificate for inventory service validation
22+ TailscaleHostname string
23+ InventoryCA string
24+ TailscaleAuthKey string
3625 VouchBaseURL string
3726 VouchAPIKey string
38- TailscaleAuthKey string
39- TailscaleHostname string
40- TailscaleListenAddr string
41- TailscaleAPIKey string
42- TailscaleTailnet string
43- MFAServiceURL string
44- TelemetryEndpoint string
45- TelemetryEnv string
27+ VouchTimeout time.Duration
28+ VouchCacheTTL time.Duration
29+ RetryMaxAttempts int
30+ VouchRetryAttempts int
31+ VouchMaxEntries int
32+ RetryMaxElapsed time.Duration
33+ RequestTimeout time.Duration
34+ DeviceCertHours time.Duration
35+ VouchEnabled bool
36+ VouchRetryEnabled bool
37+ VouchCircuitBreaker bool
38+ TelemetryInsecure bool
4639}
0 commit comments