Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improved subdomain-url handling #211

Merged
merged 10 commits into from
Jun 10, 2024
Merged

feat: improved subdomain-url handling #211

merged 10 commits into from
Jun 10, 2024

Commits on May 24, 2024

  1. fix: subdomain-url handling

    - removed implicit tests based on SubdomainLocalhostGatewayURL
    - subdomain tests are now run only against origins defined via
      `--subdomain-url`
    - DNSLink gateway tests are no longer tied to origin passed via
      `--subdomain-url`
    lidel committed May 24, 2024
    Configuration menu
    Copy the full SHA
    3e74a1a View commit details
    Browse the repository at this point in the history

Commits on May 25, 2024

  1. fix(wip): avoid mangling Host header handling

    - splitting into subdomain and dnslink gateway variants
    - towards avoiding running everything three times
    - keep custom Host header when defined
    lidel committed May 25, 2024
    Configuration menu
    Copy the full SHA
    822698a View commit details
    Browse the repository at this point in the history

Commits on May 26, 2024

  1. refactor: remove subdomains from dnslink fixtures

    these concepts should not mix, and dnslinks should be testable
    independent of --subdomain-url
    
    i also added more useful export format for them, compatible with
    IPNS_NS_MAP used by Boxo/Kubo/Rainbow
    lidel committed May 26, 2024
    Configuration menu
    Copy the full SHA
    89e2a27 View commit details
    Browse the repository at this point in the history
  2. refactor: handling Host header vs proxying

    towards fixing underlying issue
    lidel committed May 26, 2024
    Configuration menu
    Copy the full SHA
    3f49a56 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2024

  1. feat: make start-kubo-docker

    all-in-one command for running local kubo with all fixtures in
    lidel committed May 27, 2024
    Configuration menu
    Copy the full SHA
    f2d236e View commit details
    Browse the repository at this point in the history

Commits on May 29, 2024

  1. Configuration menu
    Copy the full SHA
    b950560 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2024

  1. docs: skip and run examples

    lidel committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    c351ef6 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2024

  1. refactor: UnwrapSubdomainTests → proxy-gateway

    This replaces magic helpers.UnwrapSubdomainTests with explicit
    spec preset named proxy-gateway, which can be enabled/disabled
    the same way as other presets.
    
    While it was nice to run every test in both proxy modes,
    it was extremely noisy and hard to debug once things went wrong.
    
    By having explicit tests in *_proxy_test.go it is easy to skip them
    where proxy functionality is not relevant.
    
    Other:
    
    - Send meaningful User-Agent
    - Sent detached path in HTTP Connect proxy tunnel tests (instead of full
      URL – in tunnel mode we pretend we talk to remote server on the other
      end of tunnel, and not send full URL like it is done in plain proxy
      mode)
    lidel committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    ce57411 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2024

  1. Configuration menu
    Copy the full SHA
    ebc9434 View commit details
    Browse the repository at this point in the history
  2. refactor: require explicit gateway URLs

    This is important UX change. We no longer ship with default URLs.
    
    User has to provide explicit one, or the test suite will refuse to run.
    This ensures misconfigurations and testing different gateway endpoint
    than desired do not happen.
    
    Explicit is better than implicit.
    lidel committed Jun 9, 2024
    Configuration menu
    Copy the full SHA
    7b222e6 View commit details
    Browse the repository at this point in the history