Question

[BUG] App Platform adds unnecessary HTTP port 8080 to internal services

When deploying a “internal” service in App Platform that is intended to be internal-only, the platform automatically adds port 8080 as a public HTTP port, even though the service specification explicitly defines only internal ports.

Steps to Reproduce:

  1. Create an App Platform deployment using the following spec:
spec:
  name: deploystack
  region: nyc
  services:
    - name: db
      image:
        registry_type: DOCKER_HUB
        registry: library
        repository: mariadb
        tag: "11.2"
      instance_count: 1
      instance_size_slug: basic-xxs
      health_check:
        port: 3306          
      internal_ports:
        - 3306
  1. Deploy the application

  2. Check the service configuration

Expected Behavior:

  • The database service should only expose the specified internal port (3306)

  • No public HTTP ports should be added when not explicitly configured

Actual Behavior:

  • App Platform automatically adds port 8080 as a public HTTP port

  • This happens despite only specifying internal_ports in the configuration

Impact:

  1. Unnecessarily exposes services to the public internet

  2. Violates the principle of least privilege

  3. Creates potential security concerns for internal-only services

  4. Makes it impossible to properly configure internal-only services without public exposure

Additional Context: This behavior appears to be hardcoded into App Platform and cannot be disabled through the service specification, which is problematic for deploying internal-only services like databases.


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
February 19, 2025

Hey @piotrh,

This is an interesting finding, I recommend reaching out to DigitalOcean support to report it as a bug or request a feature to allow disabling the automatic HTTP port assignment.

You can also post this as a feature request on the DigitalOcean Product Ideas board, make sure to include as much information as possible for what you’d like to see implemented:

https://ideas.digitalocean.com/

- Bobby.

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.