feat: one-click cli and api secret access #457
+437
−22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🔍 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:
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:
💚 Did You...
- [ ] Update dependencies and lockfiles (if required)- [ ] Regenerate graphql schema and types (if required)