Skip to content

Add ca-certificates feature#253

Merged
sebst merged 2 commits intomainfrom
copilot/add-ca-certificates-feature
Mar 31, 2026
Merged

Add ca-certificates feature#253
sebst merged 2 commits intomainfrom
copilot/add-ca-certificates-feature

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 31, 2026

Adds a new ca-certificates devcontainer feature that installs the system CA certificate bundle and optionally registers custom CA certificates from user-provided URLs.

What's added

  • src/ca-certificates/ — feature source
    • devcontainer-feature.jsonurls option: newline-separated list of certificate URLs to download and register
    • install.sh — installs ca-certificates via apt; if urls is set, downloads each cert to /usr/local/share/ca-certificates/ using wget (preferred) or curl (installed on demand), then runs update-ca-certificates
    • NOTES.md — feature documentation
  • test/ca-certificates/test.sh — verifies /etc/ssl/certs/ca-certificates.crt exists and update-ca-certificates is on PATH
  • README.md — feature table entry inserted alphabetically between bun.sh and ccache.dev

Notes

  • Filename derivation from URL uses tr -cd 'a-zA-Z0-9._-' to prevent path traversal; URLs that yield an empty sanitized filename are skipped with a warning
  • Download tool selection: wget if present → curl if present → install curl then use it

Copilot AI linked an issue Mar 31, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add ca-certificates installation feature with URL handling Add ca-certificates feature Mar 31, 2026
Copilot AI requested a review from sebst March 31, 2026 08:19
@sebst sebst marked this pull request as ready for review March 31, 2026 08:20
@sebst sebst merged commit 0d9ab6c into main Mar 31, 2026
7 checks passed
@sebst sebst deleted the copilot/add-ca-certificates-feature branch March 31, 2026 08:21
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.

Add "ca-certificates" feature

2 participants