fix: address protocol probe review findings
This commit is contained in:
@@ -146,8 +146,13 @@ func (p terminalPresentation) Render(state presentationState) string {
|
||||
page = redactTerminalPage(page)
|
||||
// Dashboard composition retains structured Target metadata until pane sizes
|
||||
// are known. Redact the fully composed frame as the final presentation
|
||||
// boundary as well, so no render path can bypass credential scrubbing.
|
||||
return profile.RedactText(p.renderShell(page, width, height))
|
||||
// boundary as well, so no render path can bypass credential scrubbing. Form
|
||||
// frames use the stricter boundary that removes the entire userinfo.
|
||||
frame := p.renderShell(page, width, height)
|
||||
if state.page == formPage {
|
||||
return profile.RedactUserinfoText(frame)
|
||||
}
|
||||
return profile.RedactText(frame)
|
||||
}
|
||||
|
||||
func renderStatus(state presentationState) string {
|
||||
|
||||
Reference in New Issue
Block a user