armada-api container not using the correct user
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Marcus Secato |
Bug Description
Brief Description
-----------------
Commands run in armada-api container via 'kubectl exec' are not using the proper user.
Severity
--------
Minor: System/Feature is usable with minor issue
Steps to Reproduce
------------------
Run a 'kubectl exec -n armada <armada-api container name> -- ps -eaf'. Notice that processes are running with user 'nobody'.
Expected Behavior
------------------
The 'armada' user should be used for all operations in armada-api
Actual Behavior
----------------
The 'nobody' user is used for all operations in armada-api
Reproducibility
---------------
100% reproducible
System Configuration
-------
Seen in AIO-SX Subcloud but would be seen in any other configuration
Branch/Pull Time/Commit
-------
As of armada migrated to Kubernetes
Last Pass
---------
Seen since armada started being deployed in Kubernetes cluster. Previously, the armada user was always enforced using 'docker exec' command.
Timestamp/Logs
--------------
UID PID PPID C STIME TTY TIME CMD
nobody 1 0 0 10:43 ? 00:00:00 uwsgi -b 32768 --die-on-term --http :8000 --http-timeout 3600 --enable-threads -L --lazy-apps --master --paste config:
nobody 6 1 0 10:43 ? 00:00:01 uwsgi -b 32768 --die-on-term --http :8000 --http-timeout 3600 --enable-threads -L --lazy-apps --master --paste config:
nobody 7 1 0 10:43 ? 00:00:01 uwsgi -b 32768 --die-on-term --http :8000 --http-timeout 3600 --enable-threads -L --lazy-apps --master --paste config:
nobody 8 1 0 10:43 ? 00:00:01 uwsgi -b 32768 --die-on-term --http :8000 --http-timeout 3600 --enable-threads -L --lazy-apps --master --paste config:
nobody 9 1 0 10:43 ? 00:00:01 uwsgi -b 32768 --die-on-term --http :8000 --http-timeout 3600 --enable-threads -L --lazy-apps --master --paste config:
nobody 10 1 0 10:43 ? 00:00:00 uwsgi -b 32768 --die-on-term --http :8000 --http-timeout 3600 --enable-threads -L --lazy-apps --master --paste config:
Test Activity
-------------
Developer testing
Workaround
----------
N/A
CVE References
Changed in starlingx: | |
assignee: | nobody → Marcus Secato (mviniciu) |
Fix proposed to branch: master /review. opendev. org/c/starlingx /integ/ +/786511
Review: https:/