Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Scanner Agent In Rootless Mode #2017

Open
1 of 6 tasks
dmdhrumilmistry opened this issue Mar 14, 2024 · 2 comments
Open
1 of 6 tasks

Run Scanner Agent In Rootless Mode #2017

dmdhrumilmistry opened this issue Mar 14, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request needs-triage Indicates that issue is not yet triaged and assigned

Comments

@dmdhrumilmistry
Copy link

Additional context
To able to run scanner agent docker containers in rootless mode.

Is your feature request related to a problem? Please describe.
Some organizations prefer running docker in rootless mode to enhance container security posture for their current infra. Host Docker Agent doesn't seem to work properly when docker is running in rootless mode.

Describe the solution you'd like

Describe alternatives you've considered

Components/Services

  • UI/Frontend
  • API/Backend
  • Agent
  • Deployment/YAMLs
  • CI/CD Integration
  • Other (specify)

Additional context

@dmdhrumilmistry dmdhrumilmistry added enhancement New feature or request needs-triage Indicates that issue is not yet triaged and assigned labels Mar 14, 2024
@noboruma
Copy link
Collaborator

noboruma commented Mar 21, 2024

@dmdhrumilmistry thanks for reporting this issue.
The agent needs root permission to access some system information, hence we never looked into rootless mode.
If we do that, we might lose access to useful information and thus return partial information to the console, like connectivity information and some file access (Meaning scanner might not be accessing the full file system).
Would such degradation be acceptable in your workflow?

@dmdhrumilmistry
Copy link
Author

@dmdhrumilmistry thanks for reporting this issue. The agent needs root permission to access some system information, hence we never looked into rootless mode. If we do that, we might lose access to useful information and thus return partial information to the console, like connectivity information and some file access (Meaning scanner might not be accessing the full file system). Would such degradation be acceptable in your workflow?

@noboruma thanks for the clarity on the issue. We would like to stick to rootless mode for now since it avoids several security risks. Would it be possible to run agent without using docker with root permissions?

@shyam-dev shyam-dev assigned varunsharma0286 and unassigned noboruma Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-triage Indicates that issue is not yet triaged and assigned
Projects
None yet
Development

No branches or pull requests

3 participants