Can porter explain include the sensitive property? #2193
-
Hi, We use the explain command a lot and miss the ability to know if a parameter is defined as sensitive. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
You aren't the first to point out that we are missing sensitive in explain! Out of curiosity, how does whether or not a parameter is sensitive impact your workflows? Do you do anything different because a param is sensitive? I'm asking in case there's more that we can do to help, beyond adding in the extra info to explain. |
Beta Was this translation helpful? Give feedback.
-
How does something like this look? This would also change the other output formats (yaml/json) so that if you are using explain to automate, you can get at the sensitive flag there too. EDIT: I've created #2228 to track adding sensitive to the yaml/json output for porter explain. I decided to not edit the human readable output (below) because this is just for automation. $ porter explain -r ghcr.io/getporter/examples/credentials-tutorial:v0.3.0
Name: examples/credentials-tutorial
Description: An example Porter bundle with credentials. Uses your GitHub token to retrieve your public user profile from GitHub.
Version: 0.3.0
Porter Version: v1.0.0-alpha.19
Credentials:
--------------------------------------------------------------------------------
Name Description Required Applies To
--------------------------------------------------------------------------------
github-token A GitHub Personal Access true install,upgrade
Token. Generate one at
https://github.com/settings/tokens.
No scopes are required.
Parameters:
------------------------------------------------------------------------------------
Name Description Type Default Required Sensitive Applies To
------------------------------------------------------------------------------------
user A GitHub username. Defaults to string false true install,upgrade
the current user.
This bundle uses the following tools: exec.
To install this bundle run the following command, passing --param KEY=VALUE for any parameters you want to customize:
porter credentials generate mycreds --reference ghcr.io/getporter/examples/credentials-tutorial:v0.3.0
porter install --reference ghcr.io/getporter/examples/credentials-tutorial:v0.3.0 --cred mycreds |
Beta Was this translation helpful? Give feedback.
-
I see it's on the v1 version... |
Beta Was this translation helpful? Give feedback.
How does something like this look? This would also change the other output formats (yaml/json) so that if you are using explain to automate, you can get at the sensitive flag there too.
EDIT: I've created #2228 to track adding sensitive to the yaml/json output for porter explain. I decided to not edit the human readable output (below) because this is just for automation.