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

⭐️ new login and logout subcommands #141

Merged
merged 1 commit into from
Oct 22, 2022
Merged

⭐️ new login and logout subcommands #141

merged 1 commit into from
Oct 22, 2022

Conversation

chris-rock
Copy link
Member

Brings the login experience to cnspec

cnspec login --token $MONDOO_TOKEN
→ token will expire at Fri, 21 Oct 2022 15:00:16 CEST
→ config file does not exist, create a new one path=cnspec.yml
→ client //agents.api.mondoo.app/spaces/test-infallible-taussig-796596/agents/2G89H49tT6yJyR37vaGRONzFWuP has logged in successfully
spacerocket.fritz.box:..cnspec ±> cnspec status
→ Platform:	macos
→ Version:	12.6
→ Hostname:	spacerocket.fritz.box
→ IP:		192.168.178.20
→ Time:		2022-10-21T14:52:57+02:00
→ Version:	unstable (API Version: unstable)
→ API ConnectionConfig:	http://127.0.0.1:8989
→ API Status:	SERVING
→ API Time:	2022-10-21T14:52:57+02:00
→ API Version:	unstable
→ Owner:	//captain.api.mondoo.app/spaces/test-infallible-taussig-796596
→ Client:	//agents.api.mondoo.app/spaces/test-infallible-taussig-796596/agents/2G89H49tT6yJyR37vaGRONzFWuP
→ Service Account:	//agents.api.mondoo.app/spaces/test-infallible-taussig-796596/serviceaccounts/2GRgN1TyMIuxlfhILsBkb76qsID
→ client is registered
→ client authenticated successfully

In followup PRs we probably want to share more code with cnquery.

Copy link
Member

@arlimus arlimus left a comment

Choose a reason for hiding this comment

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

Sweet! Kudos

@arlimus arlimus merged commit 3bcfce6 into main Oct 22, 2022
@arlimus arlimus deleted the chris-rock/login branch October 22, 2022 05:57
@github-actions github-actions bot locked and limited conversation to collaborators Oct 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants