Skip to content

Print multiply denial hints separately#594

Merged
sfc-gh-ikryvanos merged 3 commits intomainfrom
2025-09-12_improve-error-format
Sep 15, 2025
Merged

Print multiply denial hints separately#594
sfc-gh-ikryvanos merged 3 commits intomainfrom
2025-09-12_improve-error-format

Conversation

@sfc-gh-ikryvanos
Copy link
Copy Markdown
Collaborator

@sfc-gh-ikryvanos sfc-gh-ikryvanos commented Sep 12, 2025

Output on denial hint would look like

go run ./cmd/sanssh --proxy=localhost:50043 --targets=localhost:50042 file read /etc/hos  
Target localhost:50042 (0) returned error - rpc error: code = PermissionDenied desc = Authz policy does not permit this request, there are several reasons why:
  * this message always shows up on errors
  * we only proxy /etc/hosts

exit status 1

@sfc-gh-ikryvanos sfc-gh-ikryvanos enabled auto-merge (squash) September 15, 2025 14:44
@sfc-gh-ikryvanos sfc-gh-ikryvanos merged commit cb7a79e into main Sep 15, 2025
6 checks passed
@sfc-gh-ikryvanos sfc-gh-ikryvanos deleted the 2025-09-12_improve-error-format branch September 15, 2025 14:52
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.

2 participants