scc-digitalhub / AAC

Apache License 2.0
4 stars 6 forks source link

update dockerfile to use numeric UID 805 for Kubernetes security context #606

Closed gianpaolo-tndigit closed 1 month ago

gianpaolo-tndigit commented 1 month ago

Kubernetes cannot verify the non-root status when USER aac is used, resulting in the error:

Error: container has runAsNonRoot and image has non-numeric user (aac), cannot verify user is non-root.

a possibile fix could be replace USER aac with USER 805.

https://github.com/scc-digitalhub/AAC/blob/e176d75fbea86063eda8f88ef6efd6b00b997818/Dockerfile#L34

https://github.com/scc-digitalhub/AAC/blob/e176d75fbea86063eda8f88ef6efd6b00b997818/Dockerfile-debug#L25

gianpaolo-tndigit commented 1 month ago

close with 11dad73a35e5619051a3830ebc1937ceea97abec