sentry-cli icon indicating copy to clipboard operation
sentry-cli copied to clipboard

Ability to disable reading the global configuration

Open DmitryMoodys opened this issue 2 years ago • 2 comments

Hi guys 👋

We have an issue with Sentry CLI, it always tries to read the global config from ~/.sentryclirc.

Unfortunately, we can't allow doing that due to security reasons and therefore we get an error: https://github.com/getsentry/sentry-cli/blob/a29838bbeabacb448c6a2afa4cbec0f4086cd11f/src/config.rs#L495

Would be great to provide an opportunity to skip this step using env var and start reading from project_config_path. https://github.com/getsentry/sentry-cli/blob/a29838bbeabacb448c6a2afa4cbec0f4086cd11f/src/config.rs#L503

Thanks!

DmitryMoodys avatar May 11 '23 19:05 DmitryMoodys

Hey, that sounds like a really nice first issue if someone would like to contribute :)

kamilogorek avatar May 15 '23 10:05 kamilogorek

Hey, that sounds like a really nice first issue if someone would like to contribute :)

Opened :) https://github.com/getsentry/sentry-cli/pull/1609

DmitryMoodys avatar May 15 '23 21:05 DmitryMoodys