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

Bridge: remove rustix via clap bump #1109

Merged
merged 1 commit into from
Oct 19, 2023
Merged

Conversation

svix-onelson
Copy link
Contributor

@svix-onelson svix-onelson commented Oct 19, 2023

Refs: https://github.com/svix/svix-webhooks/security/dependabot/75

Formerly we had a runtime dep on a vulnerable version of rustix. This was transitive, and introduced via clap. Bumping clap removed this dependency from our tree.

There is still one vulnerable version introduced via opentelemetry-otlp, but since it's a build-dep it's less of a concern (see the advisory for the rationale).

$ cargo tree -p [email protected] -i
rustix v0.38.8
└── tempfile v3.7.1
    └── prost-build v0.11.9
        └── tonic-build v0.8.4
            [build-dependencies]
            └── opentelemetry-proto v0.1.0
                └── opentelemetry-otlp v0.11.0
                    └── svix-bridge v1.13.0 (/home/onelson/Projects/svix-webhooks/bridge/svix-bridge)

If we can update the various otel-related deps, we might be able to bump rustix or remove it entirely, but that's a bigger lift.

Refs: <https://github.com/svix/svix-webhooks/security/dependabot/74>

Formerly we had a runtime dep on a vulnerable version of `rustix`. This
was transitive, and introduced via `clap`. Bumping clap removed this
dependency from our tree.

There is still one vulnerable version introduced via
`opentelemetry-otlp`, but since it's a build-dep it's less of a concern
(see the advisory for the rationale).

```
$ cargo tree -p [email protected] -i
rustix v0.38.8
└── tempfile v3.7.1
    └── prost-build v0.11.9
        └── tonic-build v0.8.4
            [build-dependencies]
            └── opentelemetry-proto v0.1.0
                └── opentelemetry-otlp v0.11.0
                    └── svix-bridge v1.13.0 (/home/onelson/Projects/svix-webhooks/bridge/svix-bridge)
```

If we can update the various otel-related deps, we might be able to bump
`rustix` or remove it entirely, but that's a bigger lift.
@svix-onelson svix-onelson added the dependencies Pull requests that update a dependency file label Oct 19, 2023
@svix-onelson svix-onelson requested a review from a team October 19, 2023 20:23
@svix-onelson svix-onelson marked this pull request as ready for review October 19, 2023 20:24
@svix-onelson svix-onelson merged commit 81fcc24 into main Oct 19, 2023
4 checks passed
@svix-onelson svix-onelson deleted the onelson/rustix-dependabot branch October 19, 2023 20:44
svix-onelson added a commit that referenced this pull request Oct 19, 2023
Same boat for `svix-server` as with `svix-bridge` in #1109

Bumping clap removes the sole runtime dependency on `rustix`, but it
still exists in the dep tree impacting only compile-time code paths.

```
$ cargo tree -p [email protected]
rustix v0.38.4
└── tempfile v3.7.0
    ├── figment v0.10.10
    │   └── svix-server v1.13.0 (/home/onelson/Projects/svix-webhooks/server/svix-server)
    ├── prost-build v0.9.0
    │   └── tonic-build v0.6.2
    │       [build-dependencies]
    │       └── opentelemetry-otlp v0.10.0
    │           └── svix-server v1.13.0 (/home/onelson/Projects/svix-webhooks/server/svix-server)
    └── sqlx-macros-core v0.7.1
        └── sqlx-macros v0.7.1 (proc-macro)
            └── sqlx v0.7.1
                ├── sea-orm v0.12.2
                │   └── svix-server v1.13.0 (/home/onelson/Projects/svix-webhooks/server/svix-server)
                ├── sea-query-binder v0.5.0
                │   └── sea-orm v0.12.2 (*)
                └── svix-server v1.13.0 (/home/onelson/Projects/svix-webhooks/server/svix-server)
```

Updating sea-orm, and otel-related deps will help get the affected
`rustix` version out of our tree entirely, but it's a larger lift.

Refs: https://github.com/svix/svix-webhooks/security/dependabot/74
svix-onelson added a commit that referenced this pull request Oct 19, 2023
Same boat for `svix-server` as with `svix-bridge` in #1109

Bumping clap removes the sole runtime dependency on `rustix`, but it
still exists in the dep tree impacting only compile-time code paths.

```
$ cargo tree -p [email protected] -i
rustix v0.38.4
└── tempfile v3.7.0
    ├── figment v0.10.10
    │   └── svix-server v1.13.0 (/home/onelson/Projects/svix-webhooks/server/svix-server)
    ├── prost-build v0.9.0
    │   └── tonic-build v0.6.2
    │       [build-dependencies]
    │       └── opentelemetry-otlp v0.10.0
    │           └── svix-server v1.13.0 (/home/onelson/Projects/svix-webhooks/server/svix-server)
    └── sqlx-macros-core v0.7.1
        └── sqlx-macros v0.7.1 (proc-macro)
            └── sqlx v0.7.1
                ├── sea-orm v0.12.2
                │   └── svix-server v1.13.0 (/home/onelson/Projects/svix-webhooks/server/svix-server)
                ├── sea-query-binder v0.5.0
                │   └── sea-orm v0.12.2 (*)
                └── svix-server v1.13.0 (/home/onelson/Projects/svix-webhooks/server/svix-server)
```

Updating sea-orm, and otel-related deps will help get the affected
`rustix` version out of our tree entirely, but it's a larger lift.

Refs: https://github.com/svix/svix-webhooks/security/dependabot/74
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants