Skip to content

Use AWS-LC for Rust playground OTLP TLS - #20073

Merged
Jose Perez Rodriguez (joperezr) merged 1 commit into
mainfrom
joperezr-fix-rust-ring-finding
Sep 14, 2026
Merged

Jose Perez Rodriguez (joperezr) merged 1 commit into
mainfrom
joperezr-fix-rust-ring-finding

Conversation

@joperezr

@joperezr Jose Perez Rodriguez (joperezr) commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

Description

The Rust playground uses ring, which was flagged by dependency scanning. This switches its OTLP TLS backend to AWS-LC and updates the lockfile, preserving telemetry and native-root certificate validation.

Remaining blocker: ring is no longer compiled, but Cargo still lists it as an inactive optional dependency in the lockfile due to rust-lang/cargo#10801. This is not yet a complete fix for lockfile-based scanning.

Linux build and smoke checks passed, including telemetry delivery and rejection of untrusted certificates and hostname mismatches. Windows/macOS and full AppHost startup were not tested. Platform requirements and dependency details are in the sample README.

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No

Select the same supported TLS provider on both Cargo feature paths while retaining native-root certificate verification. Document the upstream optional lockfile dependency limitation.

Co-authored-by: Copilot App <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 20073

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 20073"

@aspire-repo-bot
aspire-repo-bot Bot requested a balanced review from Copilot September 11, 2026 22:35
@github-actions github-actions Bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Sep 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

1 / 99 PR test projects · 0 PR jobs · 0 advisory-only targets, from 2 changed files.

Selected PR test projects (1 / 99)

Aspire.Playground.Tests

Selected PR jobs (0)

none

Advisory workflow impact (0)

none


How these were chosen — grouped by what changed

📄 playground/rust/app/Cargo.lock (changed)
→ 1 directly: Aspire.Playground.Tests

📄 playground/rust/app/Cargo.toml (changed)
→ 1 directly: Aspire.Playground.Tests

Job reasons

none


Selection computed for commit 0d2d775.

@joperezr
Jose Perez Rodriguez (joperezr) marked this pull request as ready for review September 11, 2026 22:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

The TLS-provider migration lacks committed cross-platform build/integration coverage, with native platform behavior still unverified.

Review tier: Lite (auto)
Findings: None

Note

Copilot is running an experiment and ran this review at Lite.

What changed in this PR

Migrates the Rust playground’s OTLP/gRPC TLS backend from ring to AWS-LC while retaining certificate validation, native roots, and HTTP support.

Changes:

  • Selects tls-aws-lc for OpenTelemetry and tonic.
  • Regenerates the lockfile with AWS-LC dependencies.
  • Documents build requirements and the remaining inactive ring lockfile entry.
File Summary
playground/​rust/​app/​README.md Documents TLS behavior, requirements, and validation.
playground/​rust/​app/​Cargo.toml Switches TLS provider features to AWS-LC; committed CI coverage is still needed.
playground/​rust/​app/​Cargo.lock Records AWS-LC dependencies and the remaining inactive ring entry.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread playground/rust/app/Cargo.lock Resolved
@joperezr
Jose Perez Rodriguez (joperezr) merged commit a1218f4 into main Sep 14, 2026
43 checks passed
@joperezr
Jose Perez Rodriguez (joperezr) deleted the joperezr-fix-rust-ring-finding branch September 14, 2026 16:52
@github-actions github-actions Bot added this to the 13.6 milestone Sep 14, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

✅ No documentation update needed.

Step 5 branch taken

docs_optional → build_or_ci_only

Triggered signals

No signals triggered (signal_count: 0). The pre-computed advisory only_test_or_build_changes is true but is never gating on its own.

Allowlist justification

All 3 changed files match the playground/** glob, which is explicitly listed in the build_or_ci_only allowlist category:

  • playground/rust/app/Cargo.lock (dependency lockfile update)
  • playground/rust/app/Cargo.toml (swaps ring for AWS-LC as the OTLP TLS backend)
  • playground/rust/app/README.md (new sample README documenting the change)

This PR swaps the TLS crypto backend (ring → aws-lc-rs) used internally by the Rust playground sample's OTLP exporter to address a dependency-scanning flag. It does not add, change, or remove any public Aspire API, CLI command/option, hosting/client integration, dashboard page, or other user-facing surface that ships to microsoft/aspire.dev consumers — it only affects an internal playground sample used for manual verification. No docs PR is warranted.

@github-actions github-actions Bot locked and limited conversation to collaborators Oct 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants