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: one-click cli and api secret access #457

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

nimish-ks
Copy link
Member

@nimish-ks nimish-ks commented Feb 11, 2025

🔍 Overview

This PR is aimed at making it easier to fetch secrets programmatically using either the CLI or REST API, within the current working context of the Console

💡 Proposed Changes

Added a menu within the App header to get one-line commands for the CLI or REST API. The following context parameters are used to construct a one-line command:

  • Instance host
  • App
  • Environment
  • Path

A temporary PAT with a 5min expiry is created and added to the copyable command, so the request is authenticated. Subsequent commands will re-use this token as long as it is still valid for a 1 min or more, otherwise a new token is created.

🖼️ Screenshots or Demo

Screencast.From.2025-02-13.15-51-46.mp4

📝 Release Notes

Added a one-click secret access menu to the App header, with click-copy one-line commands for CLI and REST API access

🎯 Reviewer Focus

Verify that the commands are correct and always respect the:

  • Instance host
  • App
  • Environment
  • Path

💚 Did You...

  • Ensure linting passes (code style checks)?
    - [ ] Update dependencies and lockfiles (if required)
    - [ ] Regenerate graphql schema and types (if required)
  • Verify the app builds locally?
  • Manually test the changes on different browsers/devices?

@nimish-ks nimish-ks self-assigned this Feb 11, 2025
@nimish-ks nimish-ks marked this pull request as draft February 11, 2025 09:11
@rohan-chaturvedi rohan-chaturvedi marked this pull request as ready for review February 13, 2025 10:30
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.

2 participants