-
Notifications
You must be signed in to change notification settings - Fork 0
Deployment Guide
Project GateKeeper is designed to be lightweight and easy to deploy in both local environments and CI/CD pipelines.
It enables teams to:
- Test APIs against real endpoints
- Detect security risks early
- Integrate security checks into automated workflows
Developer / QA
โ
Run GateKeeper (pytest)
โ
Send API Request โ BASE_URL
โ
Receive API Response
โ
Developer / QA
โ
Run GateKeeper (pytest)
โ
Send API Request โ BASE_URL
โ
Receive API Response
โ
[ Response Intelligence Engine ]
- Sensitive Data Detection
- Token Analysis
- Header Validation
- Information Leakage Detection
- Unauthorized Access Analysis
โ
[ Security Posture Scoring ]
โ
[ Operational Telemetry Aggregation ]
- Endpoint Tracking
- Timeout Tracking
- Success / Failure Correlation
- Risk Aggregation
- Stability Classification
โ
[ Structured Reporting ]
- Terminal Intelligence Output
- JSON Telemetry Export
โ
[ CI/CD Decision Engine ]
โ Pass Deployment
โ Block Deployment
โ
[ CI/CD Decision ]
โ Pass Deployment
โ Block Deployment
Before deploying GateKeeper, ensure:
- Python 3.10+
- pip installed
- Internet access (for external API testing)
git clone https://github.com/your-repo/project-gatekeeper.git cd project-gatekeeper
pip install -r requirements.txt
Set the target API:
export BASE_URL=https://httpbin.org
export TIMEOUT=10 export ENABLE_HEADER_CHECKS=true export ENABLE_TOKEN_ANALYSIS=true export OUTPUT_FORMAT=json
๐ก These options allow customization of analysis behavior and output.
pytest tests/ -v
GateKeeper will:
- Send requests to the configured API
-
Analyze responses for:
- Sensitive data exposure
- Token anomalies
- Security headers
- Information leakage
- Aggregate operational telemetry across endpoint workflows
- Generate centralized execution-state summaries
- Evaluate overall platform stability and risk posture
-
Generate:
- Color-coded terminal output
- Risk scoring summary
- JSON report (optional)
Run GateKeeper against a live API:
export BASE_URL=https://httpbin.org pytest tests/ -v
GET /users/1
GateKeeper now includes centralized operational telemetry orchestration designed to aggregate execution-state intelligence across API security workflows.
The telemetry subsystem tracks:
- Endpoint execution state
- Success / failure ratios
- Timeout resilience
- Risk-level aggregation
- Security score correlation
- Platform stability classification
This architecture establishes the foundation for future historical telemetry analysis, anomaly detection, execution baselining, and Heimdall operational visualization workflows.
After execution:
- ๐ Structured Operational Telemetry Report
- ๐ JSON Intelligence Export
- ๐ Aggregated Security Posture Metrics
- ๐ง Centralized Execution-State Summary
reports/ โโโ gatekeeper_report.json
GateKeeper can be integrated into CI/CD pipelines to enforce pre-deployment security validation.
GateKeeper now includes automated GitHub Actions Continuous Integration (CI) validation.
Every push and pull request to the main branch automatically triggers:
- ๐ฆ Dependency installation
- ๐งช Automated pytest execution
- ๐ Clean Ubuntu environment validation
- ๐ Regression, telemetry integrity, and orchestration stability validation
This process helps ensure:
- Consistent behavior across environments
- Reduced regression risk during architectural evolution
- Portable and reproducible execution
- Stable modular development workflows
The CI workflow is defined in:
.github/workflows/python-tests.yml
This represents an important evolution in GateKeeper's engineering maturity by introducing automated validation directly into the development lifecycle.
Engineering Philosophy:
From Validation to Operational Intelligence.
From GateKeeper to Heimdall.
name: GateKeeper Scan
on: [push]
jobs:
security-test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set Up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Dependencies
run: pip install -r requirements.txt
- name: Run GateKeeper Tests
env:
BASE_URL: https://httpbin.org
run: pytest tests/ -v
GateKeeper can be configured to block deployments when critical risks are detected.
if security_posture_score <= 40:
print("CRITICAL SECURITY POSTURE DETECTED - BLOCKING DEPLOYMENT")
exit(1)
GateKeeper currently uses a weighted security posture scoring model based on structured findings severity and endpoint analysis results. Scoring thresholds and deployment enforcement policies are actively evolving as the framework architecture matures.
- ๐ Detects API security issues early
- โก Integrates directly into developer workflows
- ๐ Enables shift-left security practices
- ๐งช Bridges QA testing with security validation
- Operational telemetry dashboards
- Historical execution-state correlation
- Adaptive deployment risk analysis
- Behavioral anomaly detection
- Heimdall visualization integration
- Telemetry-driven deployment enforcement