Skip to content

feat: hide network utils config when tools settings url is set#411

Open
fred-head wants to merge 1 commit into
sharevb:chore/all-my-stuffsfrom
fred-head:feat/network-utils-settings-ui
Open

feat: hide network utils config when tools settings url is set#411
fred-head wants to merge 1 commit into
sharevb:chore/all-my-stuffsfrom
fred-head:feat/network-utils-settings-ui

Conversation

@fred-head

Copy link
Copy Markdown

Summary

This PR updates the network utilities based tools to support fixed runtime configuration via tools-settings.json.

When a url is configured for one of these tools, the manual Network Utilities configuration UI is hidden and the configured values are used instead.

Affected tools:

  • dns-tester
  • https-tester
  • dns-prop

What changed

  • Added a small shared helper for resolving Network Utilities configuration
  • Switched the three tools to use that shared logic
  • Hide the manual service configuration UI when a fixed url is provided via tools-settings.json
  • Preserve the existing manual configuration flow when no url is configured

Why

This keeps the current self-hosted workflow intact, while also allowing instance-level defaults through the already existing tools-settings.json mechanism.

That makes these tools easier to preconfigure for hosted/self-hosted deployments without forcing end users to manually enter the service URL in the UI.

Security note

tools-settings.json is a client-side runtime configuration file and its contents are visible to users via browser of the deployed frontend.

Because of that, any auth value configured there should be treated as a shared service credential for self-hosted setups, not as a secret. If authentication is used, it should ideally be combined with deployment-side protections such as network restrictions, reverse proxy controls, rate limiting, etc.

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