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

feat: add kurtosis cloud load to CLI #882

Merged
merged 34 commits into from Jul 27, 2023
Merged

feat: add kurtosis cloud load to CLI #882

merged 34 commits into from Jul 27, 2023

Conversation

adschwartz
Copy link
Contributor

@adschwartz adschwartz commented Jul 12, 2023

Description:

In this PR we are adding the kurtosis cloud load <instance_id> option that enables the user to load the config from the cloud and automatically switch the context.

To use the command the user must export an API key to the env var: KURTOSIS_CLOUD_API_KEY

Is this change user facing?

YES

References (if applicable):

# Conflicts:
#	cli/cli/commands/kurtosis_context/context_switch/switch.go
#	cli/cli/kurtosis_config/resolved_config/kurtosis_cluster_config.go
@adschwartz adschwartz marked this pull request as ready for review July 27, 2023 02:45
@adschwartz adschwartz changed the title Anders/kloud create feat: add kurtosis cloud load to CLI Jul 27, 2023
@adschwartz
Copy link
Contributor Author

Note, the GitGuardian complaint about an API key being found can be ignored. It was a test key that's burned and no api keys are in the source code

@gbouv gbouv removed the request for review from laurentluce July 27, 2023 12:09
Copy link
Contributor

@gbouv gbouv 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 in general, but I think we don't need to declare a V3 for the config object and handle the migration logic. The change to the config you're making is backward compatible.

cli/cli/command_str_consts/command_str_consts.go Outdated Show resolved Hide resolved
api/golang/engine/lib/cloud/cloud.go Outdated Show resolved Hide resolved
cli/cli/commands/cloud/load/load.go Outdated Show resolved Hide resolved
cli/cli/commands/cloud/load/load.go Show resolved Hide resolved
cli/cli/commands/cloud/load/load.go Outdated Show resolved Hide resolved
@adschwartz adschwartz changed the title feat: add kurtosis cloud load to CLI feat: add kurtosis cloud load to CLI Jul 27, 2023
@kurtosis-tech kurtosis-tech deleted a comment from gitguardian bot Jul 27, 2023
@gitguardian
Copy link

gitguardian bot commented Jul 27, 2023

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id Secret Commit Filename
7296163 Generic High Entropy Secret a5a0db9 cli/cli/commands/cloud/load/load.go View secret
7296163 Generic High Entropy Secret 38ad7b2 cli/cli/commands/cloud/load/load.go View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

# Conflicts:
#	cli/cli/go.mod
#	cli/cli/go.sum
@adschwartz adschwartz merged commit b2db8c9 into main Jul 27, 2023
29 checks passed
@adschwartz adschwartz deleted the anders/kloud-create branch July 27, 2023 23:23
adschwartz pushed a commit that referenced this pull request Jul 27, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.80.20](0.80.19...0.80.20)
(2023-07-27)


### Features

* add `kurtosis cloud load to CLI`
([#882](#882))
([b2db8c9](b2db8c9))
* ask user for email on first run of Kurtosis
([#1001](#1001))
([0f33b5b](0f33b5b))
* Start engine remotely with remote backend config when the context is
remote ([#963](#963))
([6816d1f](6816d1f))
* validate min cpu & min memory are well under whats available
([#988](#988))
([768e95d](768e95d))


### Bug Fixes

* Normalize destroy enclave in all tests
([#976](#976))
([20b635a](20b635a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: kurtosisbot <kurtosisbot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants