Skip to content

Default flag values for fastedge app logs and sort parameter sanitization#28

Merged
KenanHH merged 4 commits intomainfrom
default-values-fastedge-logs
Mar 19, 2024
Merged

Default flag values for fastedge app logs and sort parameter sanitization#28
KenanHH merged 4 commits intomainfrom
default-values-fastedge-logs

Conversation

@KenanHH
Copy link
Collaborator

@KenanHH KenanHH commented Mar 19, 2024

New help shows this content:

Flags:
      --client-ip string   Client IP filter
      --edge string        Edge name filter
      --from string        Reporting period start, UTC (default "today")
  -h, --help               help for show
      --sort string        Log sort order, asc or desc (default "asc")
      --to string          Reporting period end, UTC (default "now")

@KenanHH KenanHH requested a review from qrdl March 19, 2024 01:47
cmd.Flags().String("to", "now", "Reporting period end, UTC")
cmd.Flags().String("sort", "asc", "Log sort order, asc or desc")
cmd.Flags().String("edge", "", "Edge name filter")
cmd.Flags().String("client-ip", "", "Client IP filter")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please hide this flag for now using https://pkg.go.dev/github.com/spf13/pflag#FlagSet.MarkHidden , I'm not sure we need to show it. Let's clarify first that it doesn't violate GDPR. It is easier to un-hide it later than remove

@KenanHH KenanHH merged commit baa4d73 into main Mar 19, 2024
@KenanHH KenanHH deleted the default-values-fastedge-logs branch March 19, 2024 09:13
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