Sentry-cli: [feature-request] Add a configuration for upload-url

Created on 30 Sep 2020  路  1Comment  路  Source: getsentry/sentry-cli

Why

Our Sentry instance is accessible under two domains: one is private and only reachable from inside the company network, the other is accessible from internet for error reporting and some api calls.

When trying to upload sourcemaps using sentry-cli, there is a call to /api/0/organizations/<org>/chunk-upload/ returning a config containing a field url.

sentry-cli then uses this url instead of the one specified in SENTRY_URL to send file chunks, leading to an error because this url is not reachable in our case because it's the internal url.

Setting system.upload-url-prefix server side could work but it'll break the upload from the other domain.

Feature request

Add a configuration in sentry-cli to override the upload url, something like defaults.upload_url?

Another option is to force the use of defaults.url but I'm not sure it's a good idea.

Most helpful comment

@alex-fournier -- Working on this...

>All comments

@alex-fournier -- Working on this...

Was this page helpful?
0 / 5 - 0 ratings