I have figured out the issue. Instead of "enabled" you have to use access. So use this:
endpoint: gateway: access: read_only