Skip to content

FIx env variable set with SERVER_CA_BUNDLE#803

Open
LucaPacioselli wants to merge 1 commit into
rucio:mainfrom
LucaPacioselli:lpaciose-server-ca-bundle-fix
Open

FIx env variable set with SERVER_CA_BUNDLE#803
LucaPacioselli wants to merge 1 commit into
rucio:mainfrom
LucaPacioselli:lpaciose-server-ca-bundle-fix

Conversation

@LucaPacioselli

Copy link
Copy Markdown
Contributor

Fix the env variable set with RUCIO_WEBUI_SERVER_CA_BUNDLE from NODE_EXTRA_TLS_CERTS to NODE_EXTRA_CA_CERTS. This solves #802.

Copilot AI review requested due to automatic review settings July 6, 2026 18:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Fixes handling of RUCIO_WEBUI_SERVER_CA_BUNDLE by switching the generated/runtime-consumed Node.js CA bundle environment variable from NODE_EXTRA_TLS_CERTS to NODE_EXTRA_CA_CERTS, aligning with the intended behavior described in issue #802 so the WebUI can trust a custom CA when connecting to the Rucio server.

Changes:

  • Update env-generator template to emit NODE_EXTRA_CA_CERTS instead of NODE_EXTRA_TLS_CERTS.
  • Update WebUI HTTP client code to read NODE_EXTRA_CA_CERTS and adjust the related error message.
  • Update env-generator validation comment to reference the new env var name (note: stored feedback to clarify that the required input is still SERVER_CA_BUNDLE).

Reviewed changes

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

File Description
tools/env-generator/src/templates/.env.liquid Generates NODE_EXTRA_CA_CERTS from SERVER_CA_BUNDLE when SSL is enabled.
tools/env-generator/src/api/base.ts Updates validation comment related to CA bundle requirements when TLS verification is enabled.
src/lib/sdk/http.ts Reads CA bundle path from NODE_EXTRA_CA_CERTS and updates the corresponding error message.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

const requiredVariables: string[] = ["rucio_host", "rucio_auth_host", "hostname", "project_url", "vo_default", "vo_list", "nextauth_url"]

// check if NODE_TLS_REJECT_UNAUTHORIZED is set to 1, then NODE_EXTRA_TLS_CERTS should be set
// check if NODE_TLS_REJECT_UNAUTHORIZED is set to 1, then NODE_EXTRA_CA_CERTS should be set
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