Skip to content

feat: add --cert* options #6

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

Merged
merged 2 commits into from
Apr 14, 2025
Merged

feat: add --cert* options #6

merged 2 commits into from
Apr 14, 2025

Conversation

DanielleMaywood
Copy link
Collaborator

@DanielleMaywood DanielleMaywood commented Apr 14, 2025

Add new configuration options for custom SSL certificates:

  • cert: Path to certificate
  • certKey: Path to certificate key
  • certHost: Hostname for self-signed certificate

@DanielleMaywood DanielleMaywood requested a review from Copilot April 14, 2025 13:15
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 6 changed files in this pull request and generated 3 comments.

Files not reviewed (5)
  • src/code-server/devcontainer-feature.json: Language not supported
  • src/code-server/install.sh: Language not supported
  • test/code-server/code-server-cert-host.sh: Language not supported
  • test/code-server/code-server-cert.sh: Language not supported
  • test/code-server/scenarios.json: Language not supported

@DanielleMaywood DanielleMaywood marked this pull request as ready for review April 14, 2025 13:21
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

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

Great, this approach should make the cert flags shell safe even if the names contain spaces or other special chars. 👍🏻

Comment on lines 59 to 60
CERT_FLAGS+=(--cert)
CERT_FLAGS+=("$CERT")
Copy link
Member

Choose a reason for hiding this comment

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

Suggestion: Alternative way:

Suggested change
CERT_FLAGS+=(--cert)
CERT_FLAGS+=("$CERT")
CERT_FLAGS+=(--cert "$CERT")

@DanielleMaywood DanielleMaywood merged commit d719798 into main Apr 14, 2025
7 checks passed
@DanielleMaywood DanielleMaywood deleted the dm-add-cert-options branch April 14, 2025 18:29
@DanielleMaywood DanielleMaywood self-assigned this Apr 14, 2025
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.

2 participants