Skip to content

Cyber-Suite-CSE/API-Tester

Repository files navigation

API Tester Service

The API Tester is a specialized microservice within the Project Vigilion by CSE - Cyber at UoM platform designed to validate and secure API endpoints. It allows users to define, manage, and execute security tests against target APIs.

Features

  • Endpoint Management: Create and organize API endpoints for testing.
  • Automated Testing: Run security checks against defined endpoints.
  • Integration: Seamlessly integrates with the Vigilion Dashboard for reporting and control.

Running Locally

To run this service independently:

  1. Build the Image:

    docker build -t registry/api-tester .
  2. Run Container:

    docker run -p 8004:8004 --env-file .env registry/api-tester

The service will be available at http://localhost:8004.

Deployment

This service is deployed as part of the main Deployment-Repo stack. Configured via env/api-tester/.env.

Monitoring & CI/CD

Prometheus Monitoring

This service exposes a native, lightweight /metrics endpoint returning Prometheus-formatted telemetry (such as uptime, memory, and CPU usage).

  • Metrics Endpoint: /metrics
  • Scraping Config: Configured with annotations prometheus.io/scrape: "true" in the deployment manifest.

CI/CD Pipeline

GitHub Actions workflow is located at .github/workflows/deploy.yml which triggers on push to main branch:

  • Build Optimization: Uses docker/setup-buildx-action@v3 with layer caching enabled (cache-from: type=gha, cache-to: type=gha,mode=max).
  • Target Registry: csecyber/api-tester
  • Tags Generated: Dual tags for :latest and the unique commit hash :${ github.sha }.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors