Skip to content

Railway CLI Doesn't Work Behind Proxy With Custom Certificate #808

@zicklag

Description

@zicklag

This is related #785, but also distinct.

Behind an HTTP proxy with a custom certificate, it's not possible to use the railway CLI, which I needed to ssh into my services.

There are two issues:

  • The system certificate store is not respected, so I get a certificate error when trying to do anything that accesses the Railway API.
  • The websockets do not respect the environment proxy confiuguration like the normal HTTP requests do, because websockets do not use reqwest for the initial HTTP connection.

I have a PR that fixes both issues: #807.

I've had to open several tooling proxy PRs in the past, so this isn't my first one. 😁

The PR gets railway CLI working perfectly on my network. Sorry for opening the PR before the issue, I just needed to actually do the implementation to make sure I understood what was wrong. I'd appreciate any review and feedback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions