Skip to content

fix(known-hosts): filter out public service hosts from scan/import#2500

Merged
binaricat merged 1 commit into
binaricat:mainfrom
CJAY1997:codex/filter-public-service-hosts
Jul 26, 2026
Merged

fix(known-hosts): filter out public service hosts from scan/import#2500
binaricat merged 1 commit into
binaricat:mainfrom
CJAY1997:codex/filter-public-service-hosts

Conversation

@CJAY1997

Copy link
Copy Markdown
Contributor

Summary

When scanning the system known_hosts file or importing from a file, well-known public service hostnames (e.g. github.com, gitlab.com) are now excluded from being added to the Known Hosts vault.

Changes

  • Added PUBLIC_SERVICE_HOSTNAMES exclusion list (github.com, gitlab.com, bitbucket.org, Azure DevOps)
  • Applied filter in both system scan and file import paths
  • Added toast notification when entries are filtered out
  • Added locale strings (en, zh-CN, zh-TW, ru)

Before

Scanning system known_hosts would import github.com, gitlab.com, etc. into the vault.

After

Public service hostnames are filtered out, and a toast shows how many were skipped.

When scanning the system known_hosts file or importing from a file,
exclude well-known public service hostnames (github.com, gitlab.com,
bitbucket.org, Azure DevOps) from being added to the Known Hosts vault.
These entries represent third-party services rather than user-managed
hosts and are not meaningful in an SSH host management context.

- Add PUBLIC_SERVICE_HOSTNAMES exclusion list
- Apply filter in both system scan and file import paths
- Show a toast notification when entries are filtered
- Add locale strings for filtered count (en, zh-CN, zh-TW, ru)
@binaricat
binaricat merged commit f0bd06c into binaricat:main Jul 26, 2026
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