Skip to content

feat: add option to clear service credentials#23

Merged
GeiserX merged 1 commit intomainfrom
feat/clear-service-credentials
Apr 17, 2026
Merged

feat: add option to clear service credentials#23
GeiserX merged 1 commit intomainfrom
feat/clear-service-credentials

Conversation

@GeiserX
Copy link
Copy Markdown
Owner

@GeiserX GeiserX commented Apr 17, 2026

Summary

  • Adds DELETE /api/config/{slug} endpoint to remove all stored credentials and signup bonus for a service
  • Cleans up auto-created "external" deployment records for non-Docker services (e.g. Salad, Grass)
  • Adds "Clear Credentials" button in Settings > Earnings Collection for configured services
  • Adds "Clear" button in the credential modal (from dashboard)

Closes #22

Changes

  • app/database.py — new delete_config_keys() function
  • app/main.py — new DELETE /api/config/{slug} route
  • app/static/js/app.jsclearServiceCredentials() function, UI buttons in both settings and modal

Test plan

  • ruff check passes
  • CI tests pass
  • Configure a service, verify "Clear Credentials" button appears
  • Click clear, confirm dialog, verify credentials removed and badge changes to "Not configured"
  • For external services (no Docker), verify deployment record is also removed

Add DELETE /api/config/{slug} endpoint that removes all stored
credentials and signup bonus for a service, plus cleans up external
deployment records. UI gets "Clear Credentials" buttons in both the
Settings page and the credential modal.

Closes #22
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 17, 2026

Warning

Rate limit exceeded

@GeiserX has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 6 minutes and 38 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 6 minutes and 38 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 5148b677-0cd0-4156-923e-a39a7ee7851f

📥 Commits

Reviewing files that changed from the base of the PR and between 6c6f7de and 258afbb.

📒 Files selected for processing (3)
  • app/database.py
  • app/main.py
  • app/static/js/app.js
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/clear-service-credentials

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 and usage tips.

@GeiserX GeiserX merged commit b2e0663 into main Apr 17, 2026
6 checks passed
@GeiserX GeiserX deleted the feat/clear-service-credentials branch April 17, 2026 14:50
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.

[Feature]: An option to remove external services

1 participant