Prevent Lightsail SSH certificate expiry during deployments - #139
Conversation
|
@codex review |
|
I tested #139 twice against our longer Lightsail deployment, pinned to the exact PR head commit:
Unfortunately, both runs still failed when a later Docker-context SSH connection was opened. Run 1:
Run 2:
In both runs:
Given that It may be worth logging the received |
|
Tested this branch against a long, fully-cold Lightsail deploy (~13 min image build, region us-west-2). Two findings that might help: 1. The run-scoped handoff never fires for us - 2. Gating on the cert's presence instead made it work end to end: func (i *Instance) handoffExpiringSSHAccess() error {
if strings.TrimSpace(i.Access.CertKey) == "" {
return nil
}
...With that change, the handoff fires ( One note for anyone else testing: if your workflow sets FWIW I also had to rebuild the bundled |
Summary
Validation
make testmise exec -- go test ./...mise exec -- go test -race ./internal/pullpreview ./internal/providers/lightsailmise exec -- go vet ./...upx -t dist/pullpreview-linux-amd64Closes #138