Skip to content

Remove troubleshooting - #4

Merged
jp2195 merged 6 commits into
mainfrom
remove-troubleshooting
Jan 25, 2026
Merged

Remove troubleshooting#4
jp2195 merged 6 commits into
mainfrom
remove-troubleshooting

Conversation

@jp2195

@jp2195 jp2195 commented Jan 25, 2026

Copy link
Copy Markdown
Owner

Description

Related Issue

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring (no functional changes)

Checklist

  • I have read the contributing guidelines
  • My code follows the project's code style
  • I have added tests that prove my fix/feature works
  • All new and existing tests pass (go test ./...)
  • go vet ./... passes
  • golangci-lint run passes
  • I have updated documentation as needed

Testing

Screenshots (if applicable)


Note: This project uses Conventional Commits. Please ensure your PR title follows the format: type: description (e.g., feat: add session filtering, fix: correct API timeout).

  Remove SSH connection and troubleshooting runbook features from the TUI.
  When connecting via Panorama, API calls route through Panorama to managed
  firewalls, but SSH requires direct connections to each firewall's management
  IP. This architectural mismatch makes the current SSH implementation
  unreliable in Panorama environments.

  Changes:
  - Remove ViewTroubleshoot and related handlers
  - Remove SSH connection functions (connectSSH, updateTroubleshootSSH)
  - Remove troubleshoot command from navigation and command palette
  - Keep internal/ssh and internal/troubleshoot packages for future use
  The gosec v2.22.11 GitHub Action has a bug where action.yml still
  references the v2.22.10 Docker image, which bundles Go 1.25.3. This
  is incompatible with our go.mod requiring Go 1.25.5.

  Switch to manual installation using gosec's official install script,
  which uses the Go version from setup-go instead of a bundled version.
  golangci-lint v2 requires max-issues-per-linter and max-same-issues
  to be in a top-level "issues" section, not under "linters.exclusions".
  - Fix errcheck issues with proper error handling and nolint comments
  - Fix gosec issues (TLS InsecureSkipVerify, file permissions)
  - Fix govet shadows by renaming inner err variables
  - Fix govet unused writes by adding test assertions
  - Fix staticcheck nil checks, embedded field selectors, De Morgan's law
  - Fix prealloc by pre-allocating slices with known capacity
  - Add nolint:misspell for "environmentals" (PAN-OS API naming)
  - Delete unused functions: renderInterfaces, formatRow, truncateDash
  - Convert if-else chains to switch statements
  - Fix import groupings for goimports compliance
    - Fix prealloc by pre-allocating slices with known capacity
  The existing //nolint:gosec comments work with golangci-lint but are
  not recognized when gosec runs directly. Add #nosec directives to
  suppress intentional security exceptions in both tools.
@jp2195
jp2195 merged commit d9a9452 into main Jan 25, 2026
9 of 12 checks passed
@jp2195
jp2195 deleted the remove-troubleshooting branch January 25, 2026 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant