Skip to content

[Security] Run Squid container as non-root user #250

@Mossaka

Description

@Mossaka

Priority

Medium

Description

The Squid container currently runs as root initially, which increases the impact of potential container escapes or vulnerabilities in Squid itself.

Impact

  • Severity: Medium
  • Attack Vector: Squid vulnerability or container escape with root privileges
  • Risk: Greater system compromise if Squid is compromised

Proposed Solution

Configure Squid to run as a non-root user from the start:

  1. Use USER directive in Dockerfile
  2. Ensure proper permissions for Squid directories
  3. Update entrypoint script if needed

Effort Estimate

~3 hours

References

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions