webapi-token-guard

Validate WebApi /api/token rate-limiting, Bloom precheck, and X-Forwarded-For spoofing resistance via pytest.

Updated Mar 24, 2026
One-click install
npx skills add https://github.com/tombelial666/test --skill webapi-token-guard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: webapi-token-guard
Source: https://github.com/tombelial666/test/tree/main/.cursor/skills/webapi-token-guard
Command: npx skills add https://github.com/tombelial666/test --skill webapi-token-guard

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Validate WebApi /api/token anti-bruteforce protections on a live non-prod stand: rate-limit behavior, Bloom precheck short-circuit, and X-Forwarded-For spoofing resistance.

Core Features & Use Cases

  • Security hardening checks: verify rate limiting, Bloom precheck, and X-Forwarded-For protection on live non-prod WebApi endpoints.
  • Regression testing: ensure guards remain effective after changes or deployments.
  • Use Case: Security engineers validating anti-abuse controls on a live stand.

Quick Start

Run the integration tests from qa/webapi_token_guard using pytest to validate rate limiting, Bloom precheck behavior, and X-Forwarded-For resistance.

Frequently Asked Questions about webapi-token-guard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test WebApi token anti-bruteforce protections on a live environment?

Test WebApi token anti-bruteforce protections by running pytest integration tests against a live non-prod environment to verify rate-limiting behavior, Bloom precheck short-circuits, and X-Forwarded-For spoofing resistance.

What mandatory inputs are required to validate token authentication rate limiting?

Validating token authentication rate limiting requires WA_BASE_URL, WA_TOKEN_PATH, WA_USERNAME, WA_PASSWORD, and WA_APP_KEY as mandatory inputs, with optional burst and sleep parameters to control the test execution flow.

Does pytest work for regression testing X-Forwarded-For spoofing resistance?

Pytest works for regression testing X-Forwarded-For spoofing resistance by executing integration tests that verify deployed WebApi guards remain effective at blocking header spoofing attempts after code changes.

What is Bloom precheck short-circuit validation in WebApi security testing?

Bloom precheck short-circuit validation in WebApi security testing checks whether the token endpoint efficiently rejects known bad requests early, preventing unnecessary processing and hardening the API against abusive traffic.

Can I run anti-bruteforce security checks against a production WebApi stand?

Running anti-bruteforce security checks against a production WebApi stand is not supported. The integration tests are designed exclusively for validating rate limiting and spoofing resistance on live non-prod environments.

Why does my WebApi token endpoint fail to block spoofed X-Forwarded-For headers?

Your WebApi token endpoint might fail to block spoofed X-Forwarded-For headers if rate limiting or IP validation guards are misconfigured. Run pytest integration tests to diagnose the resistance failure.