Skip to content

fix: AWF_ENABLE_HOST_ACCESS safety net sets 'true' but checks expect '1' #1728

Closed

Description

@Mossaka

Bug

In src/docker-manager.ts, the allowHostServicePorts safety net sets:

environment.AWF_ENABLE_HOST_ACCESS = 'true';

But containers/agent/entrypoint.sh and containers/agent/setup-iptables.sh check:

if [ "${AWF_ENABLE_HOST_ACCESS}" = "1" ]; then

This mismatch means the safety net silently fails — host access features don't activate when they should.

Fix

Change 'true' to '1' in docker-manager.ts to match the convention used everywhere else.

Found during work on #422.

Activity

  1. added
    bug
    on Apr 6, 2026
  2. added a commit that references this issue on Apr 27, 2026
    4cd4edc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions