feat: automated setup.sh, OCIR login helper with encrypted credentials, README updates

This commit is contained in:
nogueiraguh
2026-04-03 17:51:53 -03:00
parent 2e74d316ae
commit 03db9d6b8a
4 changed files with 300 additions and 49 deletions

View File

@@ -182,26 +182,47 @@ us-ashburn-1.ocir.io/idi1o0a010nx/oci-cis-agent:latest
## Deployment
### Quick Setup (recommended)
One command — handles authentication, pull, and container startup automatically:
```bash
bash setup.sh
```
Output:
```
========================================
A-Team Security Agent — Setup
========================================
Authenticating...
Authenticated.
Pulling image...
Starting container on port 8080...
========================================
Setup Complete!
========================================
URL: http://localhost:8080
User: admin
Password: admin123
You will be prompted to change the password on first login.
========================================
```
Custom port: `PORT=9090 bash setup.sh`
### Prerequisites
- Docker installed
- Access to the OCI Container Registry (OCIR)
- OCI API Key pair (private `.pem` key + fingerprint) for application configuration
### OCIR Authentication
```bash
docker login us-ashburn-1.ocir.io
```
- **Username:** `<namespace>/oracleidentitycloudservice/<email>`
- **Password:** Auth Token (generate in OCI Console > Profile > Auth Tokens)
- Python 3 with `cryptography` package (auto-installed by setup.sh if missing)
---
### Option 1 — Docker (any machine)
Run on any machine with Docker installed (Linux, macOS, Windows).
### Alternative: Manual Docker Run
```bash
docker run -d \
@@ -214,7 +235,7 @@ docker run -d \
us-ashburn-1.ocir.io/idi1o0a010nx/oci-cis-agent:latest
```
Access: `http://localhost:8080`
> Requires OCIR authentication: `docker login us-ashburn-1.ocir.io`
---