- Container and orchestration APIs give full control of hosts: require mutual TLS and RBAC.
- Never expose them to the Internet.
- Rotate tokens and certificates and audit who has access.
Port 8140: The Puppet master service
Port 8140 is assigned by IANA to puppet (The Puppet master service).
How puppet works
DevOps, cloud & containersCommands sent to port 8140 create and control containers or cluster resources on the host.
- Transport
- TCP
- Exposure risk
- not rated depends on the program listening
- Encryption
- Unknownnot stated by the registry
- IANA status
- Assigned1 registered service
- Range
- Registered (1024-49151)
- Category
- DevOps, cloud & containers
Is port 8140 dangerous?
We have no specific security note for port 8140. Its risk depends on the program actually listening on it. General advice for devops, cloud & containers services:
IANA registry entries for port 8140
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| puppet | 8140 | TCP | The Puppet master service | - | 2014-09-18 |
| - | 8140 | - | Reserved | - | - |
// source: IANA service name and port number registry
Which program uses port 8140, and is it reachable?
Linux
sudo ss -ltnup 'sport = :8140' # process listening on 8140
sudo lsof -nP -i :8140macOS
sudo lsof -nP -i :8140
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 8140 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 8140 netstat -ano | findstr :8140
From another machine
nmap -p 8140 -sV <host> nc -zv <host> 8140
Block it in the firewall
sudo ufw deny 8140/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 8140" -Direction Inbound -LocalPort 8140 -Protocol TCP -Action Block # Windows
What is port 8140 used for?
Port 8140 is assigned by IANA to puppet (The Puppet master service).
Is port 8140 TCP or UDP?
Port 8140 is registered for TCP.
Is it safe to open port 8140?
It depends on the program that listens on it. Open it only for a service you know and only to the networks that need it. Container and orchestration APIs give full control of hosts: require mutual TLS and RBAC.
How do I check if port 8140 is open?
On Linux run "ss -ltnup 'sport = :8140'", on macOS "lsof -nP -i :8140", and on Windows "netstat -ano | findstr :8140" to see the local process. From another machine, "nmap -p 8140 <host>" shows whether it is reachable.