Conversation
| slog-scope.workspace = true | ||
|
|
||
| config = "0.11" # pin to 11, 12+ introduces a breaking change for env vars. | ||
| config = "0.15" # pin to 11, 12+ introduces a breaking change for env vars. |
There was a problem hiding this comment.
| config = "0.15" # pin to 11, 12+ introduces a breaking change for env vars. | |
| config = "0.15" |
b26bd8b to
a392c75
Compare
68f3a1e to
5c07731
Compare
9fe7a88 to
fda2fc6
Compare
d6e07a0 to
4fb5324
Compare
I don't recall any issues with moving to a new deadpool. Are there grpcio warnings on this branch currently? Or when upgrading protobuf? We should be able to go to max protobuf 2.28 per the |
Removing protobuf from the root, though funny I’ve looked at https://lib.rs/crates/google-cloud-rust-raw to check the max protobuf version, which appears to be 3.4.0. Looks like we can bump that and as per your comment earlier in that PR, but not higher than what is a dep in google-cloud-rust-raw, right? Ah, nevermind about deadpool now... I remember. We can't upgrade yet since there are some compat issues between it and |
04ee009 to
32467a0
Compare
| # `cargo build --features grpcio/openssl ...` | ||
| grpcio = { version = "0.13.0", features = ["openssl"] } | ||
| protobuf = { version = "2.28.0" } # must match what's used by googleapis-raw | ||
| protobuf = { version = "2.28.0" } # must match what's used by google-cloud-rust-raw |
There was a problem hiding this comment.
I don't think we were getting issues with this, but makes sense that we pin the exact version. Thx
32467a0 to
d1c2f32
Compare
| regex = "1.12" | ||
| reqwest = { version = "0.12", default-features = false, features = [ | ||
| "rustls-tls", | ||
| reqwest = { version = "0.13.2", default-features = false, features = [ |
There was a problem hiding this comment.
FYI I usually use cargo upgrade from the cargo edit suite to update deps in Cargo.toml (it would have upgraded to "0.13" here, leaving off the patch version because the original value lacked a patch version)
Description
Resolves a number of security vulnerabilities raised by
cargo auditand several outdated packages that introduced breaking changes, therefore we didn't update.Will need some context from @pjenvey on deadpool and protobuf, as the effects of updating those may be larger. grpcio warnings remain.
Regarding the historical issue holding us back with
config:The historical comment next to the dep said: "pin to 11, 12+ introduces a breaking change for env vars".
Turns out in config 0.12, the prefix is separated from the key using the same separator we configure. So with separator
__, the env varSYNC_TOKENSERVER__ENABLEDwould need to becomeSYNC__TOKENSERVER__ENABLED. The oldSYNC_prefix format no longer worked.This means in CI,
SYNC_TOKENSERVER__DATABASE_URLandSYNC_SYNCSTORAGE__DATABASE_URLwere never parsed and the settings fell back to defaults (empty), causing the test failures.The fix is to restore the _ prefix delimiter explicitly using the newer
prefix_separatormethod.Testing
compilation
Issue(s)
Closes STOR-352.