Skip to content

Allow adding custom header to all requests #759

@kbrooks

Description

@kbrooks

At my company, we have a self-hosted sentry instance behind an IAP authentication layer, which makes it impossible to use the Sentry CLI as it exists today. On the old sentry CLI we did this:

export SENTRY_PROJECT="your-project-name"
export CUSTOM_HEADER="SC-LCA-1: ..."

Support for this behavior was added in this PR getsentry/sentry-cli#1077

This doesn't seem to be supported on the new CLI which doesn't support a custom header or a header parameter on the sentry auth login command

sentry auth login  -H "SC-LCA-1: ..."

and the plain command fails with

 ERROR  Failed to initiate device flow                                                                                                                                                          auth.login 1:01:31 PM
  Endpoint: /oauth/device/code/
  Invalid IAP credentials: empty token

Can we add support for custom headers to the new cli?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions