Skip to content

sources: update tough to 0.23.0#962

Draft
sky1122 wants to merge 3 commits into
bottlerocket-os:developfrom
sky1122:update-tough-version
Draft

sources: update tough to 0.23.0#962
sky1122 wants to merge 3 commits into
bottlerocket-os:developfrom
sky1122:update-tough-version

Conversation

@sky1122

@sky1122 sky1122 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Description of changes:
update tough to v0.23.0

Testing done:

[root@admin]# apiclient get os
{
  "os": {
    "arch": "x86_64",
    "build_id": "49f1c7d2",
    "pretty_name": "Bottlerocket OS 1.62.0 (aws-k8s-1.33)",
    "variant_id": "aws-k8s-1.33",
    "version_id": "1.62.0"
  }
}
[root@admin]# apiclient update check
21:20:16 [INFO] Refreshing updates...
Failed to check for updates: refresh attempt failed with status 'Failed' (-1): Metadata error: Failed to verify root metadata: Signature threshold of 1 not met for role root (0 valid signatures)

[root@admin]# [ssm-user@control]$ journalctl -u updog
[root@admin]# apiclient get os
{
  "os": {
    "arch": "x86_64",
    "build_id": "d5b82aef-dirty",
    "pretty_name": "Bottlerocket OS 1.63.0 (aws-k8s-1.33)",
    "variant_id": "aws-k8s-1.33",
    "version_id": "1.63.0"
  }
}
[root@admin]#

TBD more for updating reqwest to 0.13

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

Signed-off-by: Jingwei Wang <jweiw@amazon.com>
@sky1122 sky1122 force-pushed the update-tough-version branch from f597916 to 783514e Compare June 25, 2026 22:39
@sky1122

sky1122 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

force pushed to fix license

sky1122 added 2 commits June 25, 2026 23:45
Update migrator tests to use jiff::Timestamp instead of
chrono::DateTime to match tough 0.23's updated expiration API.
Add jiff as a workspace dev-dependency.

Signed-off-by: Jingwei Wang <jweiw@amazon.com>
Update the workspace reqwest dependency from 0.12 to 0.13. This aligns
all crates on a single reqwest version, eliminating the previous
duplication where tough 0.23 brought in reqwest 0.13 alongside the
workspace's reqwest 0.12.

Changes:
- Bump workspace reqwest from 0.12 to 0.13
- Update feature flags from `rustls-tls-native-roots` to `rustls`
  (renamed in reqwest 0.13)
- Remove tough skip-tree entry from deny.toml since reqwest duplication
  no longer exists

Signed-off-by: Jingwei Wang <jweiw@amazon.com>
@sky1122 sky1122 marked this pull request as draft June 26, 2026 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant