edgexfoundry / edgexfoundry/edgex-compose

[ERROR]security_opt items at 0 and 1 are equal

Open Beginner friendly
#526 0 comments 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
Makefile
Stars
113
Forks
127
PR merge metrics
No merged PRs in 30d

Description

# 🐞 Bug Report

### Affected Services [**REQUIRED**]

The issue is located in:
`make down`

### Is this a regression?

Yes, the previous version in which this bug was not present was: ....

### Description and Minimal Reproduction [**REQUIRED**]

## 🔥 Exception or Error
**Prepare**: make run ds-rest ds-virtual asc-sample mqtt-broker delayed-start
**Troubleshooting**: `make down` failure
- Error 1
> edgex-compose-palau/compose-builder/add-mqtt-broker-mosquitto.yml: services.mqtt-broker.security_opt items at 0 and 1 are equal
make: *** [Makefile:1140: down] Error 1

add-mqtt-broker-mosquitto.yml:
```
security_opt:
- no-new-privileges:true
user: "${EDGEX_USER}:${EDGEX_GROUP}"
```
- Error 2
> edgex-compose-palau/compose-builder/add-secure-postgres.yml: services.database.security_opt items at 0 and 1 are equal
make: *** [Makefile:1140: down] Error 1

add-secure-postgres.yml:
```
security_opt:
- no-new-privileges:true
tmpfs:
- /run
- /tmp
```

**Workaround**: Temporarily remove the `no-new-privileges` security option from the following files:
add-mqtt-broker-mosquitto.yml
add-secure-postgres.yml
**Side Effect**: The no-new-privileges option must be restored when running make run.

## 🌍 Your Environment
**Deployment Environment:**
- Ubuntu 24.04
- Docker Compose version v5.3.1

**EdgeX Version [**REQUIRED**]:**4.0.2

**Anything else relevant?**

Contributor guide

Open the contributing guide

Research direction

Start by inspecting compose-builder/add-mqtt-broker-mosquitto.yml and compose-builder/add-secure-postgres.yml, then reproduce the failure with the documented make run and make down commands. Done means make down no longer reports duplicate security_opt items, while the no-new-privileges option remains available when running make run.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose
Domain
devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.