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

Insecure defaults in generated artifacts #2165

Closed
manusa opened this issue May 15, 2023 · 1 comment
Closed

Insecure defaults in generated artifacts #2165

manusa opened this issue May 15, 2023 · 1 comment
Assignees
Milestone

Comments

@manusa
Copy link
Member

manusa commented May 15, 2023

Description

Mirror of TOB-JKUBE-1.

JKube can generate Kubernetes deployment artifacts and deploy applications using those
artifacts. By default, many of the security features offered by Kubernetes are not enabled
in these artifacts. This can lead to the deployed applications having more permissions than
their workload requires. If such an application was compromised, the permissions would
enable the attacker to perform further attacks against the container or host.

Subtasks (To be evaluated one by one)

  • Pods have no associated network policies.
  • Dockerfiles have base image references that use the latest tag.
  • Container image references use the latest tag, or no tag, instead of a named tag
    or a digest.
  • Resource (CPU, memory) limits are not set.
  • Containers have allowPrivilegeEscalation unset.
  • Containers are not configured to use a read-only filesystem.
  • Containers run as the root user, and have privileged capabilities.
  • Seccomp profiles are not enabled on containers.
  • Service account tokens are mounted on pods where they may not be needed.

Recommendations

@manusa manusa moved this to In Progress in Eclipse JKube May 24, 2023
@manusa manusa self-assigned this May 24, 2023
@manusa manusa moved this from In Progress to Review in Eclipse JKube May 29, 2023
@manusa manusa moved this from Review to In Progress in Eclipse JKube May 29, 2023
@manusa manusa moved this from In Progress to Planned in Eclipse JKube Jun 1, 2023
@manusa manusa moved this from Planned to Review in Eclipse JKube Aug 10, 2023
@manusa manusa closed this as completed Nov 9, 2023
@github-project-automation github-project-automation bot moved this from Review to Done in Eclipse JKube Nov 9, 2023
@manusa manusa added this to the 1.13.0 milestone Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant