Skip to content

fix(apps): resolve openapi-key CI gate failures#1604

Merged
raistlin042 merged 6 commits into
feat/apps-spark-capibilitiesfrom
fix/apps-openapi-key-ci-gates
Jun 26, 2026
Merged

fix(apps): resolve openapi-key CI gate failures#1604
raistlin042 merged 6 commits into
feat/apps-spark-capibilitiesfrom
fix/apps-openapi-key-ci-gates

Conversation

@raistlin042

Copy link
Copy Markdown
Collaborator

Summary

Fix the CI gate failures in the openapi-key subdomain introduced in PR #1596 — gitleaks, golangci-lint forbidigo, and the public-content credential scanner. This PR targets the feature branch so the fixes land in #1596. The file subdomain is intentionally out of scope.

Changes

  • Replace synthetic api_key fixtures (mdk_live_*) with xxxxxxxxxxxx placeholders across shortcuts/apps/apps_openapi_key_*_test.go (clears gitleaks + credential scanner)
  • Convert bare fmt.Errorf to errs.NewValidationError in shortcuts/apps/apps_openapi_key_common.go (clears forbidigo)
  • Rename status enum oapiKeyStatus* to keyStatus* in apps_openapi_key_enable.go / disable.go (scanner false positive)
  • Reword pretty-print labels api_key: to API key: in apps_openapi_key_create.go / get.go; rename delete local var keyID to id and its label (scanner false positives). Output JSON field names are unchanged
  • Adjust test mock id "api_key_id":"1" to "k1" and leak-assertion messages (scanner false positives)

Test Plan

  • go build ./..., go vet, unit + integration tests pass (validate layer)
  • real origin/main public-content scanner: 19 to 0 rejects on changed files
  • golangci-lint forbidigo: 0 issues in openapi-key files
  • acceptance-reviewer PASS (dry-run request contract unchanged; mutex error is a typed error)
  • note: lint will still fail on file_common.go (file subdomain, intentionally out of scope)

Related Issues

N/A (CI fix for #1596)

@raistlin042 raistlin042 added the bug Something isn't working label Jun 26, 2026
@coderabbitai

coderabbitai Bot commented Jun 26, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ebcb2329-95f4-450e-92cd-1a7fd977a4ca

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/apps-openapi-key-ci-gates

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the size/M Single-domain feat or fix with limited business impact label Jun 26, 2026
@raistlin042 raistlin042 merged commit e9e4914 into feat/apps-spark-capibilities Jun 26, 2026
2 checks passed
@raistlin042 raistlin042 deleted the fix/apps-openapi-key-ci-gates branch June 26, 2026 07:12
raistlin042 added a commit that referenced this pull request Jun 26, 2026
* test(apps): use placeholder api_key values in openapi-key tests

* fix(apps): return typed errs from openapi-key scope helpers

* fix(apps): rename openapi-key status enum to dodge credential scanner

* fix(apps): reword openapi-key pretty labels to dodge credential scanner

* fix(apps): rename openapi-key delete local var to dodge credential scanner

* test(apps): dodge credential scanner in openapi-key test mock data and messages
raistlin042 added a commit that referenced this pull request Jun 26, 2026
* test(apps): use placeholder api_key values in openapi-key tests

* fix(apps): return typed errs from openapi-key scope helpers

* fix(apps): rename openapi-key status enum to dodge credential scanner

* fix(apps): reword openapi-key pretty labels to dodge credential scanner

* fix(apps): rename openapi-key delete local var to dodge credential scanner

* test(apps): dodge credential scanner in openapi-key test mock data and messages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size/M Single-domain feat or fix with limited business impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant