Skip to content

Commit 11d4eb9

Browse files
authored
[POA-3199] - Update repro mode warning message (#117)
1 parent 50cf962 commit 11d4eb9

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

cmd/internal/apidump/common_flags.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ func AddCommonApiDumpFlags(cmd *cobra.Command) *CommonApidumpFlags {
9393
false,
9494
"Enable repro mode to send request and response payloads to Postman.",
9595
)
96-
_ = cmd.PersistentFlags().MarkHidden("repro-mode")
9796

9897
return flags
9998
}

cmd/internal/kube/run.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ func init() {
4747
false,
4848
"Enable Repro Mode to capture request and response payloads for debugging.",
4949
)
50-
_ = runCmd.PersistentFlags().MarkHidden("repro-mode")
5150

5251
Cmd.AddCommand(runCmd)
5352

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ var (
4646
var rootCmd = &cobra.Command{
4747
Use: "postman-insights-agent",
4848
Short: "The Postman Insights Agent",
49-
Long: "Documentation is available at https://learning.postman.com/docs/insights/insights-early-access/",
49+
Long: "Documentation is available at https://learning.postman.com/docs/insights/overview",
5050
Version: version.CLIDisplayString(),
5151
SilenceErrors: true, // We print our own errors from subcommands in Execute function
5252
// Don't print usage after error, we only print help if we cannot parse

util/printWarningMsg.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,14 @@ func PrintFlagsWarning(warningFlags map[string]string) {
4040
const reproModeMessage = `Turning on the %s flag enables the Postman Insights Agent to send payload data to the Postman cloud.
4141
4242
The Postman Insights Agent will automatically redact values in a default list of sensitive fields, as well as any additionally specified fields.
43+
It is your reponsibility to ensure that any additional sensitive fields are appropriately redacted.
4344
For more information, please see: %s.
45+
46+
By enabling this flag you acknowledge that you have read this message and accompanying documentation, and that you both understand the risks and have appropriate permission to proceed.
4447
`
4548

4649
func PrintReproModeWarning(flag string) {
4750
printer.Warningf(reproModeMessage,
4851
printer.Color.Yellow(flag),
49-
printer.Color.Blue("https://postmanlabs.atlassian.net/wiki/spaces/PIIUG/pages/5513740658/Data+handling+and+access#When-Repro-Mode-is-enabled"))
52+
printer.Color.Blue("https://learning.postman.com/docs/insights/repro"))
5053
}

0 commit comments

Comments
 (0)