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

#273 fix login logic and api_key handling. #274

Merged
merged 99 commits into from
Jul 4, 2024
Merged

#273 fix login logic and api_key handling. #274

merged 99 commits into from
Jul 4, 2024

Conversation

fhacloid
Copy link
Contributor

@fhacloid fhacloid commented Jun 11, 2024

This PR fix a part of this issue:

  • If the config is empty, the CLI no longer panics
  • CLI write its config as 0600 permissions
  • Allow to set the cycloid API key via env var
  • Make the CLI use CY_API_KEY instead of TOKEN as API_KEY env var (the old one still works, but emits a warning)
  • Fix the --org flag behavior, it's now a global flag and org can also be set using CY_ORG env var for convenience

Sorry if the PR is massive, I had to rebase and it got dirty

@fhacloid fhacloid linked an issue Jun 11, 2024 that may be closed by this pull request
4 tasks
@fhacloid fhacloid requested review from talset and gaelL June 11, 2024 09:33
@fhacloid fhacloid marked this pull request as ready for review June 12, 2024 11:16
@fhacloid fhacloid marked this pull request as draft June 12, 2024 11:16
@fhacloid fhacloid self-assigned this Jul 2, 2024
@fhacloid fhacloid marked this pull request as ready for review July 2, 2024 14:44
@fhacloid fhacloid merged commit ad0559f into develop Jul 4, 2024
1 check passed
@fhacloid fhacloid deleted the 273-fix-login branch July 4, 2024 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix bad API_KEY handling.
3 participants