Skip to content

Bump requests from 2.25.0 to 2.31.0 in /test - #143

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/test/requests-2.31.0
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/test/requests-2.31.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 23, 2023

Copy link
Copy Markdown
Contributor

Bumps requests from 2.25.0 to 2.31.0.

Release notes

Sourced from requests's releases.

v2.31.0

2.31.0 (2023-05-22)

Security

  • Versions of Requests between v2.3.0 and v2.30.0 are vulnerable to potential forwarding of Proxy-Authorization headers to destination servers when following HTTPS redirects.

    When proxies are defined with user info (https://user:pass@proxy:8080), Requests will construct a Proxy-Authorization header that is attached to the request to authenticate with the proxy.

    In cases where Requests receives a redirect response, it previously reattached the Proxy-Authorization header incorrectly, resulting in the value being sent through the tunneled connection to the destination server. Users who rely on defining their proxy credentials in the URL are strongly encouraged to upgrade to Requests 2.31.0+ to prevent unintentional leakage and rotate their proxy credentials once the change has been fully deployed.

    Users who do not use a proxy or do not supply their proxy credentials through the user information portion of their proxy URL are not subject to this vulnerability.

    Full details can be read in our Github Security Advisory and CVE-2023-32681.

v2.30.0

2.30.0 (2023-05-03)

Dependencies

v2.29.0

2.29.0 (2023-04-26)

Improvements

  • Requests now defers chunked requests to the urllib3 implementation to improve standardization. (#6226)
  • Requests relaxes header component requirements to support bytes/str subclasses. (#6356)

... (truncated)

Changelog

Sourced from requests's changelog.

2.31.0 (2023-05-22)

Security

  • Versions of Requests between v2.3.0 and v2.30.0 are vulnerable to potential forwarding of Proxy-Authorization headers to destination servers when following HTTPS redirects.

    When proxies are defined with user info (https://user:pass@proxy:8080), Requests will construct a Proxy-Authorization header that is attached to the request to authenticate with the proxy.

    In cases where Requests receives a redirect response, it previously reattached the Proxy-Authorization header incorrectly, resulting in the value being sent through the tunneled connection to the destination server. Users who rely on defining their proxy credentials in the URL are strongly encouraged to upgrade to Requests 2.31.0+ to prevent unintentional leakage and rotate their proxy credentials once the change has been fully deployed.

    Users who do not use a proxy or do not supply their proxy credentials through the user information portion of their proxy URL are not subject to this vulnerability.

    Full details can be read in our Github Security Advisory and CVE-2023-32681.

2.30.0 (2023-05-03)

Dependencies

2.29.0 (2023-04-26)

Improvements

  • Requests now defers chunked requests to the urllib3 implementation to improve standardization. (#6226)
  • Requests relaxes header component requirements to support bytes/str subclasses. (#6356)

2.28.2 (2023-01-12)

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels May 23, 2023
@linux-foundation-easycla

Copy link
Copy Markdown

CLA Not Signed

@bhouse-nexthop bhouse-nexthop mentioned this pull request Nov 13, 2026
1 task done
bhouse-nexthop added a commit that referenced this pull request Nov 14, 2026
#### Why I did it

Adds Renovate to sonic-restapi, set up as in sonic-mgmt-common and
sonic-gnmi, as described in the [dependency hygiene
HLD](sonic-net/SONiC#2531). Third party Go
modules and GitHub Actions here are updated by hand, so security fixes
arrive late. Replaces #193, Renovate's onboarding PR, which should be
closed without merging.

#### How I did it

- **`renovate.json`:** extends the shared preset, and ignores the `go`
directive and the in-repository `swsscommon` module. The `dockerfile`
manager is off: no Dockerfile here ships (sonic-buildimage builds the
REST API container from its own), `Dockerfile.build` and
`Dockerfile.test` follow the build container's distribution, and the
rest are unused. Renovate updates `go.sum` itself: `go.mod` replaces
`swsscommon` with `../swsscommon`, which is in this repository, and no
module is patched or copied into `vendor/`.
- **`Dockerfile.build`:** builds in the `sonic-slave-trixie` container
for the target branch with `GOTOOLCHAIN=local`, instead of
`debian:bookworm` with a downloaded Go 1.25.9. A `go.mod` that needs a
newer Go than the container's then fails. The bookworm container's Go is
too old for `go.mod`, and sonic-buildimage builds the REST API container
on trixie.
- **`Dockerfile.test`, `dependencies.conf`:** the test image and the
downloaded sonic-buildimage debs move to trixie, to run what the trixie
build produces.
- **`azurepipeline.yml`, `build.sh`:** pass the target branch to the
build; a feature branch push, which has no sonic-slave container of its
own, uses master's. A push to a `renovate/*` branch starts no branch
build: Renovate's branches build as pull requests, and a branch build
would report under the same `Azure.sonic-restapi` check name. The job
frees disk on the hosted agent for the sonic-slave container, and stops
archiving the build image, which is now several GB of sonic-slave layers
that nothing downloads.

#### How to verify it

- `renovate-config-validator --strict` passes.
- CI here builds in `sonic-slave-trixie:master` and passes.
- In `sonic-slave-trixie:master`, the build uses the container's Go and
downloads none, and `go get` of a module update updates `go.mod` and
`go.sum`.

#### Which release branch to backport (provide reason below if selected)

None. Release branches carry no Renovate configuration yet.

#### Tested branch

- [x] master

#### Description for the changelog

Add Renovate configuration, and build with the sonic-slave container's
Go only.

#### Before merging: repository admin steps

1. **Prerequisite PR:** sonic-net/sonic-pipelines#255 (pins GitHub
Actions to digests; without it every Actions update fails the required
Semgrep check).
2. **Reviewer team:** Settings → Collaborators and teams → add
`sonic-net/sonic-security-wg` with **Read**. Renovate requests its
review on every PR, and a review can only be requested from a team with
access.
3. **Dependabot:** Leave Dependabot alerts **and** Dependabot security
updates on. Renovate does not take Python packages yet, so Python
security fixes (`test/requirements.txt`) still come from Dependabot; a
fix for an Action or Go module may come from both bots, and the reviewer
closes Dependabot's.
4. **Robot merge on `master`:** Settings → Branches → the `master` rule
→ under "Require a pull request before merging", make sure "Allow
specified actors to bypass required pull requests" lists
`sonic-net/sonic-automation` (its only member is `mssonicbld`); add it
if not. The merge robot merges a patch or minor security update without
a review; anything else waits for a reviewer.
5. **Renovate branches:** A classic branch protection rule matches every
branch (Renovate's `renovate/configure` branch shows as protected,
requiring EasyCLA, also for administrators). It rejects every commit
Renovate adds to an existing branch, so Renovate can open a PR but never
rebase or update it. Replace it with a ruleset that covers only what it
covered: Settings → Rules → Rulesets → New branch ruleset; enforcement
Active; target **Include all branches**; **Exclude by pattern**
`renovate/**` and `dependabot/**` (Dependabot keeps opening Python
security updates here, and the rule blocks its rebases the same way),
`master`, and `20*` (the release branches 201911 to 202605, which have
their own rules). A ruleset applies on top of classic rules rather than
giving way to a more specific one, so a branch left in would get both.
Rules: require status check EasyCLA, and whatever review or force-push
settings the classic rule has. Bypass list: the `sonic-automation` team,
**For pull requests only**; the classic rule applies to administrators
today, so add the **Repository admin** role only if admins should bypass
it. Then delete the classic rule.
6. **Onboarding PR:** close #193 ("Configure Renovate") without merging.

After merging: Renovate opens a Dependency Dashboard issue. The one open
Dependabot PR (#143) is a pip update, which stays with Dependabot.

Signed-off-by: Brad House <bhouse@nexthop.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants