Skip to content

fix(exceptions): redact device address from connection error messages - #374

Open
WilhelmZA wants to merge 1 commit into
thatmattlove:mainfrom
WilhelmZA:pr/error-sanitization
Open

fix(exceptions): redact device address from connection error messages#374
WilhelmZA wants to merge 1 commit into
thatmattlove:mainfrom
WilhelmZA:pr/error-sanitization

Conversation

@WilhelmZA

Copy link
Copy Markdown

Summary

Connection-related errors (ScrapeError, AuthError, RestError, DeviceTimeout) surface netmiko's raw message, which includes a Device settings: line exposing the device's IP address and port. This strips that line before the error reaches the client (falling back to a generic message if nothing else remains), so internal device addressing isn't leaked to looking-glass end users.

Standalone fix — touches only hyperglass/exceptions/public.py; independent of the structured-output PR series.

@WilhelmZA
WilhelmZA force-pushed the pr/error-sanitization branch from 6cec706 to 5fe8160 Compare June 14, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant