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

CLI: Add functionality to operate on Secrets #302

Closed
rajdip-b opened this issue Jun 27, 2024 · 4 comments · Fixed by #504 or #515
Closed

CLI: Add functionality to operate on Secrets #302

rajdip-b opened this issue Jun 27, 2024 · 4 comments · Fixed by #504 or #515
Assignees
Labels
difficulty: 3 hacktoberfest Hacktoberfest is on! priority: high released scope: cli Everything related to the CLI type: feature Release drafter tag for tagging PRs related to adding new features

Comments

@rajdip-b
Copy link
Member

rajdip-b commented Jun 27, 2024

Description

We would like to perform the following operations for secrets using our CLI:

  • List all secrets under a project (keyshade secret list <projectSlug>)
  • Fetch all revisions of a secret (keyshade secret revisions <secretSlug>)
  • Create a secret (keyshade secret create <projectSlug>(refer postman for parameters))
  • Update a secret (keyshade secret update <secretSlug> (refer postman for parameters))
  • Rollback a secret (keyshade secret rollback <secretSlug> --environment-slug/-e <> --version/-v <>)
  • Delete a secret (keyshade secret delete <secretSlug>)

Solution

  • Create an implementation of command.interface.ts and name if SecretCommand.
  • Stash all the functions in src/commands/secret.
  • Use the secretController under ControllerInstance to make the API calls.
@rajdip-b rajdip-b added type: feature Release drafter tag for tagging PRs related to adding new features priority: high foss hack Clustering all the curated issues for Foss Hack 2024 difficulty: 3 scope: cli Everything related to the CLI and removed foss hack Clustering all the curated issues for Foss Hack 2024 labels Jun 27, 2024
@rajdip-b rajdip-b added the hacktoberfest Hacktoberfest is on! label Oct 1, 2024
@anudeeps352
Copy link
Contributor

/attempt

Copy link

github-actions bot commented Oct 1, 2024

Assigned the issue to @anudeeps352!

@rajdip-b
Copy link
Member Author

🎉 This issue has been resolved in version 2.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@rajdip-b
Copy link
Member Author

rajdip-b commented Nov 5, 2024

🎉 This issue has been resolved in version 2.7.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty: 3 hacktoberfest Hacktoberfest is on! priority: high released scope: cli Everything related to the CLI type: feature Release drafter tag for tagging PRs related to adding new features
Projects
None yet
2 participants