mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-04-25 13:46:02 +03:00
[GH-ISSUE #349] Non-root container #95
Labels
No labels
AS
can't reproduce
can't reproduce
deployment
development
documentation
duplicate
duplicate
ee
enhancement
external
new driver
performance
pull-request
third party issue
wait for response
wait for review
wontfix
x:Oracle
x:cassandra
x:clickhouse
x:db2
x:duckdb
x:greenplum
x:h2
x:h2gis
x:hana
x:hive
x:intersystems
x:kyuubi
x:maria
x:mongo
x:mysql
x:postgresql
x:presto
x:sql server
x:sqlite
x:teradata
x:trino
xf:accessibility
xf:administration
xf:ai
xf:authentication
xf:aws
xf:commit-mode
xf:connection
xf:dark theme
xf:data editor
xf:datatransfer
xf:dba
xf:driver management
xf:erd
xf:filters
xf:i18n
xf:i18n
xf:installer
xf:json
xf:kerberos
xf:ldap
xf:local config
xf:log viewer
xf:metadata
xf:metadata editor
xf:navigator
xf:okta
xf:query manager
xf:resource manager
xf:scripts
xf:sql editor
xf:tasks
xf:ui/uix
xo: Firefox
xo:eclipse
xo:internet explorer
xo:macos
xp:major
xrn:internal
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cloudbeaver#95
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gdkx6432 on GitHub (Apr 15, 2021).
Original GitHub issue: https://github.com/dbeaver/cloudbeaver/issues/349
Hello,
I would like to run this container in enterprise plateforme kubernetes but the security office don’t let me because this container is running in root user.
So I would like to ask you to configure this container to run in non-root user. Thanks very much.
I have already try this action but there’s another command needing root action so I don’t want to bug it
Best regards,
Niaina Rand
@kseniiaguzeeva commented on GitHub (Jun 1, 2021):
With regards to your question about our container, it does not require a root user. In addition, if you meant the CloudBeaver documentation, it is written for a standalone docker, not for the kubernetes.
If you have experienced any problems when you tried to run CloudBeaver, could you please provide me with more details? I will then be able to assess the situation and be able to better help you.
@MartijnVanAndel commented on GitHub (Jun 9, 2021):
I have the same issue: running CloudBeaver on enterprise kubernetes has the following error message:
Error: container has runAsNonRoot and image will run as root
What are UID and PID used to run the container?
Or where can I find the Dockerfile to build the container?
@MartijnVanAndel commented on GitHub (Jun 9, 2021):
I got Cloudbeaver running in enterprise kubernetes, only without persistant storage.
The yaml to run it, looks like this:
@kseniiaguzeeva commented on GitHub (Jul 8, 2021):
Sorry for the long answer and thank you for the report. We will investigate it to assess the issue.
@pha91 commented on GitHub (Aug 18, 2021):
@MartijnVanAndel
Have you tried to add a new user and run the container as this one?
Just have a look at our fix ;)
after that, we've configured the security context to run as this user:
@MartijnVanAndel commented on GitHub (Aug 23, 2021):
Hi @pha91,
The fix is working out. I got cloudbeaver running with persistant storage as a statefulset.
I had to make small adjustments in the image to fix CVE-2021-33910.
after this I could successfully run cloudbeaver as statefulset on port 8080:
@kseniiaguzeeva commented on GitHub (Apr 13, 2022):
I have noticed that you have not updated your ticket for a long time. If you wish to reopen this ticket, please feel free to contact me.
@DashrathMundkar commented on GitHub (Feb 12, 2024):
Hi I tried above solution but when I start the deplyoment on kubernetes I got below error
cannot create regular file 'workspace/GlobalConfiguration/.dbeaver/data-sources.json': Read-only file systemandParent of resource: /opt/cloudbeaver/workspace/GlobalConfiguration/.project is marked as read-onlyanyone faced this issue?@EvgeniaBzzz commented on GitHub (Feb 12, 2024):
Hi @DashrathMundkar!
To ensure proper functionality of CloudBeaver, it requires write access to the /opt/cloudbeaver/workspace folder and to all child files/folders.
@DashrathMundkar commented on GitHub (Feb 12, 2024):
Do you have any example ? I tried this but no success
Then in deployment file
still no success