Skip to content

fix(webhook): normalize endpoint URL before validation#800

Open
PrasunaEnumarthy wants to merge 1 commit intogoharbor:mainfrom
PrasunaEnumarthy:fix/webhook-endpoint-normalization
Open

fix(webhook): normalize endpoint URL before validation#800
PrasunaEnumarthy wants to merge 1 commit intogoharbor:mainfrom
PrasunaEnumarthy:fix/webhook-endpoint-normalization

Conversation

@PrasunaEnumarthy
Copy link
Copy Markdown

Description

Normalize webhook --endpoint-url values before validating them in the non-interactive create and edit commands.
Other Harbor CLI commands normalize user-provided URLs using FormatUrl(...) before validation. Previously, webhook create/edit commands validated raw input directly, which could reject valid inputs like example.com/webhook that should be normalized to https://example.com/webhook.

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation update
  • Chore / maintenance

Changes

  • Normalize --endpoint-url using FormatUrl(...) before validation in webhook create
  • Normalize --endpoint-url using FormatUrl(...) before validation in webhook edit
  • Ensure consistent behavior with other Harbor CLI commands

Signed-off-by: PrasunaEnumarthy <eswari.prasuna@gmail.com>
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.

[bug]: Normalize webhook endpoint URL before validation in create/edit commands

1 participant