Skip to content

feat: add validation for remote-repo-url, string length limits and file output paths [PS-471]#61

Open
ioannacaba wants to merge 1 commit intomainfrom
chore/PS-470/validate-user-input
Open

feat: add validation for remote-repo-url, string length limits and file output paths [PS-471]#61
ioannacaba wants to merge 1 commit intomainfrom
chore/PS-470/validate-user-input

Conversation

@ioannacaba
Copy link
Copy Markdown
Contributor

What does this PR do?

Adds validation for remote-repo-url, string length limits and file output paths.

Where should the reviewer start?

internal/commands/secretstest/validate.go

How should this be manually tested?

snyk secrets test --remote-repo-url=invalid_url
snyk secrets test --target-name=very_very_long_string
snyk secrets test --json-file-output=invalid_file

What are the relevant tickets?

@ioannacaba ioannacaba requested review from a team as code owners April 9, 2026 12:34
@ioannacaba ioannacaba requested a review from alina-d-m April 9, 2026 12:34
@ioannacaba ioannacaba self-assigned this Apr 9, 2026
Copy link
Copy Markdown
Contributor

@andreeaneata andreeaneata left a comment

Choose a reason for hiding this comment

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

Approved, but it should be a bigger conversation to have these checks done for all flows in similar ways.

Right now it cannot be done because it will introduce breaking changed for users that used --tags for IaC > x, but at the same time we might end up introducing a different behaviour for shared flags across products for Secrets.

@ioannacaba ioannacaba requested a review from a team as a code owner April 9, 2026 12:59
@ioannacaba ioannacaba force-pushed the chore/PS-470/validate-user-input branch from 40b5b22 to fe51d00 Compare April 9, 2026 13:00
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