diff --git a/docker-compose.yml b/docker-compose.yml index f9bb069..0fc4c36 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,10 +24,10 @@ envoy-proxy: user: "1026:100" # Use the official Envoy Docker image - image: envoyproxy/envoy:v1.27.0 # Use a specific, stable version + image: envoyproxy/envoy:v1.33.12 # Use a specific, stable version container_name: envoy-proxy restart: unless-stopped - # Expose a port where the proxy will listen for client traffic (e.g., 9901 for admin, 10000 for listener) + # Expose a port where the proxy will listen for client traffic (e.g., 11111 for admin, 10000,10001 for listener) ports: - "10000:10000" - "10001:10001" diff --git a/internal/pkg/rotation/rotator.go b/internal/pkg/rotation/rotator.go index a39d8ab..e4abbc2 100644 --- a/internal/pkg/rotation/rotator.go +++ b/internal/pkg/rotation/rotator.go @@ -11,7 +11,8 @@ } type CertRotator struct { - // Fields for CertRotator + IntervalHours int + RotateCertificatesFunc func(ctx context.Context) error } func (cr *CertRotator) RotateCertificates(ctx context.Context) error { @@ -19,3 +20,8 @@ fmt.Println("Rotating certificates...") return nil } + +func (cr *CertRotator) Start(ctx context.Context) { + // Implementation for starting the rotation process + fmt.Println("Starting certificate rotation process...") +} diff --git a/internal/pkg/storage/storage.go b/internal/pkg/storage/storage.go index b40d419..a9db162 100644 --- a/internal/pkg/storage/storage.go +++ b/internal/pkg/storage/storage.go @@ -62,7 +62,7 @@ // RawRow is a temporary struct for DB Dump/Restore logic (not in original, but assumed) type RawRow struct { Name string - Data []byte + Data json.RawMessage `json:"data"` // Used only by the secrets table Domain sql.NullString }