From 73a6a6699cef2ffc8ab08bf10195d0515024ad2c Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Tue, 18 Aug 2026 13:47:00 +0900 Subject: [PATCH] bunker: re-render the qr code when the bunker secret rotates, it was left on screen encoding the burnt secret. --- bunker.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bunker.go b/bunker.go index 46599a4..cf83e2f 100644 --- a/bunker.go +++ b/bunker.go @@ -429,7 +429,14 @@ var bunker = &cli.Command{ } setBunkerInfo := func() { - info, _ := bunkerInfo() + info, bunkerURI := bunkerInfo() + if c.Bool("qrcode") { + // the secret embedded in the bunker uri may have rotated, + // so the qr code on screen has to be rendered again + qr := strings.Builder{} + qrterminal.Generate(bunkerURI, qrterminal.L, &qr) + terminal.Log("QR Code for bunker URI:\n%s\n", qr.String()) + } terminal.SetFooter(info) }