Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Proxy-Authorization header token at settings file #2722

Open
riqueps opened this issue Nov 23, 2023 · 0 comments
Open

Add Proxy-Authorization header token at settings file #2722

riqueps opened this issue Nov 23, 2023 · 0 comments
Labels
kind/enhancement New feature or request

Comments

@riqueps
Copy link

riqueps commented Nov 23, 2023

Is your feature request related to a problem? Please describe.
With --header flag on epinioCLI is capable to access epinioApi protect by GCP IAP solution.
But is kinda boring need to add the --header on each command after the login.

Eg:

  • epinio login -u XXX -p YYY https://epinio.domain.com --header "Proxy-Authorization: Bearer ID_TOKEN"
  • epinio app list --header "Proxy-Authorization: Bearer ID_TOKEN"
  • epinio service create... --header "Proxy-Authorization: Bearer ID_TOKEN"
    and so on.

Describe the solution you'd like
Would be nice, once we pass the --header flag during the login epinioCli automatically add the Proxy-Authorization: Bearer token at epinio settings.yaml file and use it for further requests.
Meaning, as a epinio user, I just need to use the --header just on the login and when the TOKEN expired I need to generate a new token and login again.

Eg:

  • epinio login -u XXX -p YYY https://epinio.domain.com --header "Proxy-Authorization: Bearer ID_TOKEN"
  • epinio app list
  • epinio service create...
    and so on
@riqueps riqueps added the kind/enhancement New feature or request label Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
Status: Icebox
Development

No branches or pull requests

1 participant