feat: add --skip-ssl-verify and --override-base-url global flags (#675)#724
Open
saiflayouni wants to merge 1 commit into
Open
feat: add --skip-ssl-verify and --override-base-url global flags (#675)#724saiflayouni wants to merge 1 commit into
saiflayouni wants to merge 1 commit into
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
…gee#675) Some users run apigeecli behind a corporate MITM proxy or against a local Apigee emulator. Two new persistent flags (and matching env vars) make this possible without patching the binary: - `--skip-ssl-verify` / `APIGEECLI_SKIP_SSL_VERIFY=true` Disables TLS certificate verification. Not recommended for production. - `--override-base-url <url>` / `APIGEECLI_OVERRIDE_BASE_URL=<url>` Replaces the computed Apigee base URL entirely. Implementation: - `ApigeeClientOptions` gains `SkipSSLVerify bool` and `OverrideBaseURL string` - `GetApigeeBaseURL()` checks the override first - `GetHttpClient()` creates an `http.Transport` with `tls.Config.InsecureSkipVerify` so both the proxy and non-proxy code paths respect the flag
saiflayouni
force-pushed
the
fix/ssl-tls-override
branch
from
July 1, 2026 14:41
d8f55e4 to
1838f04
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--skip-ssl-verify/APIGEECLI_SKIP_SSL_VERIFY=true— disables TLS certificate verification (useful behind a corporate MITM proxy; not recommended for production)--override-base-url <url>/APIGEECLI_OVERRIDE_BASE_URL=<url>— replaces the computed Apigee control-plane base URL entirely (useful for local emulators or testing)SkipSSLVerifyandOverrideBaseURLfields toApigeeClientOptionsGetApigeeBaseURL()checks the override before computing the region/API-specific URLGetHttpClient()creates anhttp.Transportwithtls.Config.InsecureSkipVerifyso both proxy and non-proxy paths respect the flagTest plan
apigeecli --skip-ssl-verify orgs get -o <org>connects without verifying the server certAPIGEECLI_OVERRIDE_BASE_URL=http://localhost:8080/v1/organizations/ apigeecli orgs get -o testhits the local serverCloses #675
🤖 Generated with Claude Code