Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
austinsonger committed Jun 19, 2024
1 parent 0604c8f commit ed15a09
Show file tree
Hide file tree
Showing 57 changed files with 127 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main-beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: AuditBuddy CI

on:
workflow_dispatch:

jobs:
build-and-test:
runs-on: ubuntu-latest

services:
docker:
image: docker:20.10.7
options: --privileged
ports:
- 2375:2375

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build and push framework service
run: docker build -t framework_service:latest ./services/framework

- name: Build and push providers service
run: docker build -t providers_service:latest ./services/providers

- name: Build and push utils service
run: docker build -t utils_service:latest ./services/utils

- name: Run Docker Compose
run: docker-compose up --abort-on-container-exit
24 changes: 24 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
framework:
name: "SOC 2"
controls:
- control: "Access Control"
evidence_type: "Populations"
- control: "Configuration Management"
evidence_type: "Configurations"
providers:
aws:
enabled: true
region: "us-east-1"
services:
- name: "IAM"
- name: "S3"
azure:
enabled: false
gcp:
enabled: false
okta:
enabled: false
secrets:
aws_access_key: ${AWS_ACCESS_KEY}
aws_secret_key: ${AWS_SECRET_KEY}
okta_token: ${OKTA_TOKEN}
31 changes: 31 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: '3.8'

services:
framework:
build: ./services/framework
container_name: framework_service
volumes:
- ./services/framework:/app
depends_on:
- providers
- utils
environment:
- CONFIG_FILE=/app/config.yaml

providers:
build: ./services/providers
container_name: providers_service
volumes:
- ./services/providers:/app
environment:
- CONFIG_FILE=/app/config.yaml

utils:
build: ./services/utils
container_name: utils_service
volumes:
- ./services/utils:/app
environment:
- CONFIG_FILE=/app/config.yaml

# Additional service configurations can be added here
10 changes: 10 additions & 0 deletions services/framework/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:3.9-slim

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY soc2.py iso27001.py mappings.py ./

CMD ["python", "soc2.py"]
2 changes: 2 additions & 0 deletions services/framework/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pandas
PyYAML
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions services/providers/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:3.9-slim

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY aws.py azure.py gcp.py okta.py ./

CMD ["python", "aws.py"] # Replace with the actual entry point
4 changes: 4 additions & 0 deletions services/providers/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
boto3
azure
google-cloud
okta
10 changes: 10 additions & 0 deletions services/utils/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:3.9-slim

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY auth.py format.py git.py ./

CMD ["python", "auth.py"] # Replace with the actual entry point
File renamed without changes.
2 changes: 2 additions & 0 deletions services/utils/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
requests
PyYAML

0 comments on commit ed15a09

Please sign in to comment.