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

Introduce user-defined wrapdb mirror #13953

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Commits on Nov 24, 2024

  1. Introduce user-defined wrapdb mirror

    This consolidates all queries to the wrapdb to go through the open_wrapdburl()
    function. The function handles a domain-specific url scheme
    wrapdb. When encountered, it substitutes the scheme with https and
    an authority(netloc) with either upstream wrapdb address or
    a user-defined one from the MESON_WRAPDB_MIRROR environment variable.
    klokik committed Nov 24, 2024
    Configuration menu
    Copy the full SHA
    840f286 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7406974 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2024

  1. Change mirror address configuration to project-local JSON

    Environment variables are prone to shell injection attacks, especially
    on build servers that many people may have access to. Changing address in
    a file requires an explicit command that is supposedly under the control
    of a trusted developer.
    klokik committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    51a23d2 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2024

  1. Change UI on setting WrapDB source address

    This changes moves responsibility of setting wrapdb source to the
    `wrap update-db` command. Improve wording.
    klokik committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    612b9e2 View commit details
    Browse the repository at this point in the history
  2. Require URL scheme for the WrapDB server address

    Extend source address to accept other protocols. urllib can work with
    http(s), file, ftp protocols, so this sould work, but type annotations
    are not correct for the latter two. And due to enforcement of the https for
    secure connections protocol selection options are still limited.
    klokik committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    9020ee1 View commit details
    Browse the repository at this point in the history