Skip to content

Add 2 OpenPanel security rules for Docker containers#5

Open
mladenovic-13 wants to merge 1 commit into
mainfrom
feat/openpanel-security-rules
Open

Add 2 OpenPanel security rules for Docker containers#5
mladenovic-13 wants to merge 1 commit into
mainfrom
feat/openpanel-security-rules

Conversation

@mladenovic-13

Copy link
Copy Markdown
Collaborator

Add two Docker container security rules for OpenPanel extensions.

Summary

  • openpanel-security-host-network — detects network_mode: host which bypasses container network isolation
  • openpanel-security-secrets-in-env — detects hardcoded passwords, API keys, and tokens in docker-compose environment variables (skips ${VAR} references)
  • Extend detectPlatform() to recognize docker-compose.yml and manifest.json as OpenPanel files
  • 7 new tests (3 + 4), updated vulnerable docker-compose.yml example
  • Updated RULES.md (32 → 34 rules, OpenPanel section 5 → 7)

Type of Change

  • New rule
  • Documentation update

Checklist

  • npm run validate passes (lint + typecheck + tests + build)
  • New rules have positive and negative test cases
  • Documentation updated if needed
  • No any types introduced

Add openpanel-security-host-network (detects network_mode: host which
bypasses container isolation) and openpanel-security-secrets-in-env
(detects hardcoded passwords/keys/tokens in docker-compose environment
variables, skips ${VAR} references). Also extend detectPlatform() to
recognize docker-compose.yml and manifest.json as OpenPanel files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant