Skip to content

Conversation

prkhrkat
Copy link
Contributor

@prkhrkat prkhrkat commented Sep 1, 2025

Description

Fixes #

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR requires documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have tested it for all user roles.
  • I have added all the required unit/api test cases.

Does this PR introduce a user-facing change?


Summary by Bito

This pull request enhances error handling across API endpoints by providing clearer error messages for invalid app IDs and missing parameters. It also improves logging for better request validation, aiming to increase the robustness of the API.

SATYAsasini and others added 20 commits August 20, 2025 22:47
* fix: API token generation api responses refactoring

* fix: register custom validation against tag for api token name validations

* fix: register custom validation against tag for api token name validations

* Revert "fix: register custom validation against tag for api token name validations"

This reverts commit 7593c27.

* fix: remove `required` validation from Description and expiryAtInMs

* fix: adding resource conflict api response in WriteJsonResp utility

* fix: path params int validation updated to whole numbers only

* fix: handled resource not found response for update and delete api, token
* fix: API token generation api responses refactoring

* fix: register custom validation against tag for api token name validations

* fix: register custom validation against tag for api token name validations

* Revert "fix: register custom validation against tag for api token name validations"

This reverts commit 7593c27.

* fix: remove `required` validation from Description and expiryAtInMs

* fix: adding resource conflict api response in WriteJsonResp utility

* fix: path params int validation updated to whole numbers only

* fix: handled resource not found response for update and delete api, token

* fix: validation for SSO config name field

* fix: enhanced query param validation for commit metadata for pipeline material

* fix: disable updating clsutername and api name in update clsuter api

* fix: enhanced api response in query param validation failure reeors in ge default deployment template

* fix: disable modifying cluster nae and env name in update env api

* fix: resolving review comments

* fix: resolving review comments
fix: enhacned api responses and error mesages
Copy link

gitguardian bot commented Sep 1, 2025

⚠️ GitGuardian has uncovered 6 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
19465121 Triggered Generic High Entropy Secret 15b2a4f scripts/sql/34304100_bulk_edit_config.up.sql View secret
20477209 Triggered Generic High Entropy Secret 40bb962 tests/api-spec-validation/Makefile View secret
19602448 Triggered Generic High Entropy Secret 4338a20 tests/api-spec-validation/Makefile View secret
19601641 Triggered AWS IAM Keys 67387e6 tests/api-spec-validation/reports/live-server-validation-report.md View secret
19578172 Triggered Generic High Entropy Secret b35c605 tests/api-spec-validation/Makefile View secret
19601642 Triggered GitHub Fine Grained Personal Access Token 67387e6 tests/api-spec-validation/reports/live-server-validation-report.md View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Copy link

github-actions bot commented Sep 1, 2025

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n

Copy link

github-actions bot commented Sep 1, 2025

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n

Copy link

sonarqubecloud bot commented Sep 1, 2025

@prkhrkat prkhrkat deleted the feat-api-spec-validator branch September 5, 2025 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants