Skip to content

feat: Add optional login to our future registry#13201

Merged
kodiakhq[bot] merged 16 commits intomainfrom
feat/cli_add_login
Sep 6, 2023
Merged

feat: Add optional login to our future registry#13201
kodiakhq[bot] merged 16 commits intomainfrom
feat/cli_add_login

Conversation

@yevgenypats
Copy link
Copy Markdown
Contributor

This adds an optional login to our CLI. This is not connected to our hub yet.

This works similarly to gcloud auth login.

  1. Goes to https://accounts.cloudquery.io
  2. Users logs in
  3. browser send token to CLI via local http server
  4. CLI saves token in ~/.cloudquery/token

The command currently is Hidden because our hub is not up yet where it will be needed.

@cq-bot cq-bot added the cli label Aug 20, 2023
@yevgenypats yevgenypats changed the title feat(cli): Add optional login to our future registry feat Add optional login to our future registry Aug 20, 2023
@yevgenypats yevgenypats changed the title feat Add optional login to our future registry feat: Add optional login to our future registry Aug 20, 2023
Copy link
Copy Markdown
Member

@erezrokah erezrokah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, requesting changes due to the config comment. Please let me know what you think

@candiduslynx
Copy link
Copy Markdown
Contributor

I'll be overtaking the code + move to https://pkg.go.dev/github.com/pkg/browser instead of own impl

@candiduslynx candiduslynx self-assigned this Sep 5, 2023
@candiduslynx
Copy link
Copy Markdown
Contributor

/gen sha=4384386092d0b78e0ba7fc31d323d4f94fec9887 component=cli

@erezrokah
Copy link
Copy Markdown
Member

/gen sha=4384386092d0b78e0ba7fc31d323d4f94fec9887 component=cli

@candiduslynx This command is only supported for source plugins at the moment, see

go-version-file: plugins/source/${{ github.event.client_payload.slash_command.args.named.plugin }}/go.mod

@cq-bot cq-bot added the ci label Sep 5, 2023
This reverts commit 9c60c37.
@cq-bot cq-bot removed the ci label Sep 5, 2023
@cq-bot cq-bot removed the website label Sep 5, 2023
@candiduslynx candiduslynx added automerge Automatically merge once required checks pass authentication and removed no automerge labels Sep 6, 2023
@candiduslynx
Copy link
Copy Markdown
Contributor

@erezrokah tested the code manually (seems to work with current deployment)

candiduslynx
candiduslynx previously approved these changes Sep 6, 2023
Local plugins and different registries don't need login.
`

accountsURL = "https://accounts.cloudquery.io"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[non blocking] Can we add a hidden option to override this?

@kodiakhq kodiakhq bot merged commit 6a2258e into main Sep 6, 2023
@kodiakhq kodiakhq bot deleted the feat/cli_add_login branch September 6, 2023 14:15
kodiakhq bot pushed a commit that referenced this pull request Sep 7, 2023
🤖 I have created a release *beep* *boop*
---


## [3.17.0](cli-v3.16.3...cli-v3.17.0) (2023-09-07)


### Features

* Add optional login to our future registry ([#13201](#13201)) ([6a2258e](6a2258e))
* Update migrate command description ([#13752](#13752)) ([f31037e](f31037e))


### Bug Fixes

* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.7.0 ([#13625](#13625)) ([bb5463f](bb5463f))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.7.1 ([#13713](#13713)) ([73004dc](73004dc))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants