Skip to content

Commit

Permalink
Update SentryFlow
Browse files Browse the repository at this point in the history
Signed-off-by: Jaehyun Nam <[email protected]>
  • Loading branch information
nam-jaehyun committed May 13, 2024
1 parent a4b91c4 commit d0481f0
Show file tree
Hide file tree
Showing 121 changed files with 6,098 additions and 3,890 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ If applicable, add screenshots to help explain your problem.

**Environment (please complete the following information):**
- OS: [e.g. Ubuntu 22.04]
- Numbat Versions: [e.g. v0.1]
- Kubernetes Environment: [tip: Please include CRI and CNI as well as their versions]
- Istio Environment: [tip: Please include Istio version as well as the install profiles]
- SentryFlow Versions: [e.g. v0.1]

**Additional context**
Add any other context about the problem here.
8 changes: 4 additions & 4 deletions .github/workflows/ci-test-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
go-fmt-sentryflow:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

Expand All @@ -20,7 +20,7 @@ jobs:
working-directory: sentryflow

go-lint-sentryflow:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

Expand All @@ -33,7 +33,7 @@ jobs:
working-directory: sentryflow

go-sec-sentryflow:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

Expand All @@ -46,7 +46,7 @@ jobs:
working-directory: sentryflow

license:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

Expand Down
40 changes: 33 additions & 7 deletions .github/workflows/ci-test-py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
py-pip-ai-sentryflow:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand All @@ -20,8 +20,8 @@ jobs:
pip install -r requirements.txt
working-directory: ai-engine

py-lint-ai-sentryflow:
runs-on: ubuntu-20.04
py-ruff-ai-sentryflow:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand All @@ -34,19 +34,45 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
working-directory: ai-engine


- name: Create pyproject.toml
run: |
echo "[tool.ruff.lint.per-file-ignores]" > pyproject.toml
echo '"stringlifier/*" = ["E402", "F811", "F401"]' >> pyproject.toml
working-directory: ai-engine

- name: Lint with Ruff
run: |
pip install ruff
ruff --output-format=github .
continue-on-error: true
working-directory: ai-engine

py-lint-ai-sentryflow:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pylint
working-directory: ai-engine

- name: Lint with Pylint
run: |
pylint ai-engine.py
working-directory: ai-engine

py-pep8-ai-sentryflow:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 'Run PEP8'
uses: quentinguidee/pep8-action@v1
with:
arguments: '--max-line-length=120'
arguments: '--max-line-length=120 --exclude=*stringlifier/*,*protobuf/*'
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: sentryflow-pr-checks
name: pr-checks

on:
pull_request:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: sentryflow-release-image
name: release

on:
push:
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SentryFlow

[![SentryFlow Docker Build](https://github.com/5gsec/SentryFlow/actions/workflows/sentryflow-release-image.yml/badge.svg)](https://github.com/5gsec/SentryFlow/actions/workflows/sentryflow-release-image.yml) [![CI Test](https://github.com/5gsec/SentryFlow/actions/workflows/ci-test-go.yml/badge.svg)](https://github.com/5gsec/SentryFlow/actions/workflows/ci-test-go.yml) [![ci-test-py](https://github.com/5gsec/SentryFlow/actions/workflows/ci-test-py.yml/badge.svg)](https://github.com/5gsec/SentryFlow/actions/workflows/ci-test-py.yml)
[![SentryFlow Docker Build](https://github.com/5gsec/sentryflow/actions/workflows/release.yml/badge.svg)](https://github.com/5gsec/sentryflow/actions/workflows/release.yml) [![CI for SentryFlow](https://github.com/5gsec/sentryflow/actions/workflows/ci-test-go.yml/badge.svg)](https://github.com/5gsec/sentryflow/actions/workflows/ci-test-go.yml) [![CI for AI Engine](https://github.com/5gsec/sentryflow/actions/workflows/ci-test-py.yml/badge.svg)](https://github.com/5gsec/sentryflow/actions/workflows/ci-test-py.yml)

SentryFlow is a cloud-native system for API observability and security, specializing in log collection, metric production, and data exportation.

Expand All @@ -9,15 +9,18 @@ SentryFlow is a cloud-native system for API observability and security, speciali
![SentryFlow_Overview](docs/sentryflow_overview.png)

### Features

- Generation of API Access Logs
- Proudction of API Metrics and Statistics
- Inference of API Specifications
- Production of API Metrics
- AI-driven API Classification (Inference)

## Documentation

### Basic Information

- [Getting Started](docs/getting_started.md)
- [Use Cases](examples/README.md)

### Contribution

- [Contribution Guide](contribution/README.md)
6 changes: 3 additions & 3 deletions ai-engine/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.idea
.git
.gitignore
protobuf
__pycache__/
Dockerfile
__pycache__/
protobuf/
.idea/
3 changes: 1 addition & 2 deletions ai-engine/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.idea/
__pycache__/
protobuf/
.idea/
Loading

0 comments on commit d0481f0

Please sign in to comment.