audit(gremlin): SQL-mgmt FAIL 2026-04-03

This commit is contained in:
traveler 2026-04-02 20:45:33 -05:00
parent 88c052c18d
commit 94bac36624

View file

@ -2,10 +2,10 @@
title: Audit - SQL-mgmt.yaml
description: Gremlin audit report 2026-04-03
published: true
date: 2026-04-03T01:35:35.874Z
date: 2026-04-03T01:45:33.627Z
tags: gremlin,audit
editor: markdown
dateCreated: 2026-04-03T01:35:35.874Z
dateCreated: 2026-04-03T01:45:33.627Z
---
# Audit Report — SQL-mgmt.yaml
@ -17,42 +17,58 @@ dateCreated: 2026-04-03T01:35:35.874Z
---
### Audit Results
### SWARM AUDIT CHECKS
1. **Homepage labels**:
- `homepage.group`, `homepage.name`, `homepage.icon`, `homepage.href`, `homepage.description` are present in both services.
- **PASS**
1. **Homepage Labels**:
- `phpmyadmin`: PASS
- `phppgadmin`: PASS
2. **Uptime Kuma labels**:
- `kuma.msql.http.name`, `kuma.msql.http.url` for PHPMyadmin and `kuma.mealie.http.url` for PHPPGmyadmin are missing.
- **FAIL**: Add the following labels to both services:
2. **Uptime Kuma Labels**:
- `phpmyadmin` does not have any Kuma labels.
- **FAIL**: Add the following labels to ensure consistency:
```yaml
labels:
- kuma.msql.http.name="PHPMyadmin"
- kuma.msql.http.url=http://phpmyadmin:80
- kuma.mealie.http.url=http://phppgmyadmin:80
kuma.msql.http.name="PHPMyadmin"
kuma.msql.http.url=http://phpmyadmin:80
```
- `phppgadmin`: PASS
3. **Caddy labels on exposed services**:
- `caddy=phpmyadmin.netgrimoire.com`, `caddy.reverse_proxy` are present for PHPMyadmin.
- `caddy=phppgmyadmin.netgrimoire.com`, `caddy.reverse_proxy` are present for PHPPGmyadmin.
- **PASS**
3. **Caddy Labels on Exposed Services**:
- Both services have the following Caddy labels:
```yaml
caddy=phpmyadmin.netgrimoire.com
caddy.reverse_proxy="{{upstreams 80}}"
caddy.import=authentik
```
- `phpmyadmin`: PASS
- `phppgadmin`: PASS
4. **Placement constraints**:
- No placement constraints specified (`node.hostname`).
- **FAIL**: Add node placement constraints if necessary, e.g.,
4. **Placement Constraints**:
- No placement constraints are specified.
- **FAIL**: Add a constraint to ensure services run on specific nodes if required.
```yaml
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
placement:
constraints: [node.hostname==your-node-name]
constraints:
- node.hostname == "node1"
```
5. **Volumes use /DockerVol/<service> path convention**:
- No volumes are specified in the given YAML.
- **PASS** (no action needed)
5. **Volumes Use `/DockerVol/<service>` Path Convention**:
- No volumes are specified.
- **FAIL**: Add volume configurations to ensure data persistence.
```yaml
deploy:
volumes:
- type: volume
source: DockerVol/phpmyadmin
target: /var/www/html
```
6. **Network references external netgrimoire overlay**:
- `networks: [netgrimoire]` is correctly set with `external: true`.
6. **Network References External `netgrimoire` Overlay**:
- Both services reference the external network.
- **PASS**
### VERDICT: FAIL