Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .changeset/proxy-tls-support.md

This file was deleted.

19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# @codacy/codacy-cloud-cli

## 1.10.0

### Minor Changes

- [#43](https://github.com/codacy/codacy-cloud-cli/pull/43) [`3b215b3`](https://github.com/codacy/codacy-cloud-cli/commit/3b215b3e42344eaefd094ce83e9d42e49f086aa1) Thanks [@alerizzo](https://github.com/alerizzo)! - Add HTTP/HTTPS proxy and TLS support, so the CLI works behind a corporate proxy ([#40](https://github.com/codacy/codacy-cloud-cli/issues/40)).

Every command now honors the standard environment variables:

- `HTTPS_PROXY` / `HTTP_PROXY` (and lowercase) — proxy URL per scheme; a bare `host:port` is accepted
- `NO_PROXY` / `no_proxy` — hosts that bypass the proxy (`*`, `.suffix`), matched per request
- `SSL_CERT_FILE` / `NODE_EXTRA_CA_CERTS` — PEM CA bundle for a TLS-intercepting proxy
- `CODACY_CLI_INSECURE` — disable TLS verification as a last resort (warns on stderr)

These are the same variable names the Codacy Analysis CLI and the Codacy VS Code extension use, so one environment configures all of them. The implementation is the shared `configureProxy()` from `@codacy/tooling` rather than a local reimplementation, which is what keeps the behavior identical across the tools. Misconfiguration fails immediately rather than silently doing something else: an unreadable or non-PEM CA bundle reports the path instead of quietly falling back to the default trust store, and a malformed proxy URL reports which variable was wrong and why (with any proxy password redacted) instead of a bare `Invalid URL`.

Nothing changes when no proxy variable is set — the proxy dependency is loaded lazily, so an unproxied run has no measurable overhead.

Thanks to @rattalur for reporting the gap and for the initial implementation in [#39](https://github.com/codacy/codacy-cloud-cli/issues/39).

## 1.9.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codacy/codacy-cloud-cli",
"version": "1.9.0",
"version": "1.10.0",
"description": "A command-line tool to interact with Codacy Cloud from your terminal",
"homepage": "https://www.codacy.com",
"repository": {
Expand Down
Loading