Skip to content

use distroless-base-nossl image - #5034

Merged
zirain merged 2 commits into
envoyproxy:mainfrom
arkodg:use-distroless-base-nossl
Jan 14, 2025
Merged

zirain merged 2 commits into
envoyproxy:mainfrom
arkodg:use-distroless-base-nossl

Conversation

@arkodg

@arkodg arkodg commented Jan 11, 2025

Copy link
Copy Markdown
Contributor

It includes glibc which allows us to run envoy-proxy inside the container image

Fixes: #5033

It includes glibc which allows us to run envoy-proxy inside the
container image

Fixes: envoyproxy#5033

Signed-off-by: Arko Dasgupta <[email protected]>
@codecov

codecov Bot commented Jan 11, 2025 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.74%. Comparing base (8dbe6e0) to head (7eb5843).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5034      +/-   ##
==========================================
- Coverage   66.77%   66.74%   -0.04%     
==========================================
  Files         209      209              
  Lines       32383    32383              
==========================================
- Hits        21625    21615      -10     
- Misses       9458     9466       +8     
- Partials     1300     1302       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zirain

zirain commented Jan 11, 2025

Copy link
Copy Markdown
Member

should we mention this in release notes or we ship both?

@arkodg

arkodg commented Jan 11, 2025

Copy link
Copy Markdown
Contributor Author

should we mention this in release notes or we ship both?

I'd prefer if we used 1 image, and later created images with multiple tags if we really needed to reduce size (which would be breaking change that would affect standalone only, but im hoping we dont have to go there), will add a release note to this PR

Signed-off-by: Arko Dasgupta <[email protected]>
@arkodg
arkodg requested a review from a team January 14, 2025 00:22
@zhaohuabing

Copy link
Copy Markdown
Member

I wonder why we need to run envoy inside the Envoy Gateway docker container?

@arkodg

arkodg commented Jan 14, 2025

Copy link
Copy Markdown
Contributor Author

I wonder why we need to run envoy inside the Envoy Gateway docker container?

@zhaohuabing when someone runs the envoy-gateway in standalone mode using the docker image, the envoy fleet that gets forked as a child process within the container and not on the host

@zhaohuabing

Copy link
Copy Markdown
Member

I wonder why we need to run envoy inside the Envoy Gateway docker container?

@zhaohuabing when someone runs the envoy-gateway in standalone mode using the docker image, the envoy fleet that gets forked as a child process within the container and not on the host

Thanks for the explanation!

@zirain
zirain merged commit f6bb7f8 into envoyproxy:main Jan 14, 2025
@zirain

zirain commented Jan 14, 2025

Copy link
Copy Markdown
Member

@arkodg
arkodg deleted the use-distroless-base-nossl branch January 14, 2025 01:40
@arkodg

arkodg commented Jan 14, 2025

Copy link
Copy Markdown
Contributor Author

these can be disabled using --ignore-unfixed or filtering by severity https://trivy.dev/v0.21.3/vulnerability/examples/filter/
cc @envoyproxy/gateway-maintainers

arkodg pushed a commit to arkodg/gateway that referenced this pull request Jan 14, 2025
The `distroless/base-nossl` image has a few `LOW` Severity CVEs that
have not been fixed yet and is blocking the CI from passing

```
envoy-proxy/gateway-dev:f6bb7f8c73cff74c0f44410c5b73d37f2178e0cc (debian 12.8)
==============================================================================
Total: 7 (UNKNOWN: 0, LOW: 7, MEDIUM: 0, HIGH: 0, CRITICAL: 0)

┌─────────┬──────────────────┬──────────┬──────────┬───────────────────┬───────────────┬─────────────────────────────────────────────────────────────┐
│ Library │  Vulnerability   │ Severity │  Status  │ Installed Version │ Fixed Version │                            Title                            │
├─────────┼──────────────────┼──────────┼──────────┼───────────────────┼───────────────┼─────────────────────────────────────────────────────────────┤
│ libc6   │ CVE-2010-4756    │ LOW      │ affected │ 2.36-9+deb12u9    │               │ glibc: glob implementation can cause excessive CPU and      │
│         │                  │          │          │                   │               │ memory consumption due to...                                │
│         │                  │          │          │                   │               │ https://avd.aquasec.com/nvd/cve-2010-4756                   │
│         ├──────────────────┤          │          │                   ├───────────────┼─────────────────────────────────────────────────────────────┤
│         │ CVE-2018-20796   │          │          │                   │               │ glibc: uncontrolled recursion in function                   │
│         │                  │          │          │                   │               │ check_dst_limits_calc_pos_1 in posix/regexec.c              │
│         │                  │          │          │                   │               │ https://avd.aquasec.com/nvd/cve-2018-20796                  │
│         ├──────────────────┤          │          │                   ├───────────────┼─────────────────────────────────────────────────────────────┤
│         │ CVE-2019-1010022 │          │          │                   │               │ glibc: stack guard protection bypass                        │
│         │                  │          │          │                   │               │ https://avd.aquasec.com/nvd/cve-2019-1010022                │
│         ├──────────────────┤          │          │                   ├───────────────┼─────────────────────────────────────────────────────────────┤
│         │ CVE-2019-1010023 │          │          │                   │               │ glibc: running ldd on malicious ELF leads to code execution │
│         │                  │          │          │                   │               │ because of...                                               │
│         │                  │          │          │                   │               │ https://avd.aquasec.com/nvd/cve-2019-1010023                │
│         ├──────────────────┤          │          │                   ├───────────────┼─────────────────────────────────────────────────────────────┤
│         │ CVE-2019-1010024 │          │          │                   │               │ glibc: ASLR bypass using cache of thread stack and heap     │
│         │                  │          │          │                   │               │ https://avd.aquasec.com/nvd/cve-2019-1010024                │
│         ├──────────────────┤          │          │                   ├───────────────┼─────────────────────────────────────────────────────────────┤
│         │ CVE-2019-1010025 │          │          │                   │               │ glibc: information disclosure of heap addresses of          │
│         │                  │          │          │                   │               │ pthread_created thread                                      │
│         │                  │          │          │                   │               │ https://avd.aquasec.com/nvd/cve-2019-1010025                │
│         ├──────────────────┤          │          │                   ├───────────────┼─────────────────────────────────────────────────────────────┤
│         │ CVE-2019-9192    │          │          │                   │               │ glibc: uncontrolled recursion in function                   │
│         │                  │          │          │                   │               │ check_dst_limits_calc_pos_1 in posix/regexec.c              │
│         │                  │          │          │                   │               │ https://avd.aquasec.com/nvd/cve-2019-9192                   │
└─────────┴──────────────────┴──────────┴──────────┴───────────────────┴───────────────┴─────────────────────────────────────────────────────────────┘
```
https://github.com/envoyproxy/gateway/actions/runs/12759297476/job/35562816116

Relates to envoyproxy#5034

Signed-off-by: Arko Dasgupta <[email protected]>
zirain pushed a commit that referenced this pull request Jan 23, 2025
The `distroless/base-nossl` image has a few `LOW` Severity CVEs that
have not been fixed yet and is blocking the CI from passing

```
envoy-proxy/gateway-dev:f6bb7f8c73cff74c0f44410c5b73d37f2178e0cc (debian 12.8)
==============================================================================
Total: 7 (UNKNOWN: 0, LOW: 7, MEDIUM: 0, HIGH: 0, CRITICAL: 0)

┌─────────┬──────────────────┬──────────┬──────────┬───────────────────┬───────────────┬─────────────────────────────────────────────────────────────┐
│ Library │  Vulnerability   │ Severity │  Status  │ Installed Version │ Fixed Version │                            Title                            │
├─────────┼──────────────────┼──────────┼──────────┼───────────────────┼───────────────┼─────────────────────────────────────────────────────────────┤
│ libc6   │ CVE-2010-4756    │ LOW      │ affected │ 2.36-9+deb12u9    │               │ glibc: glob implementation can cause excessive CPU and      │
│         │                  │          │          │                   │               │ memory consumption due to...                                │
│         │                  │          │          │                   │               │ https://avd.aquasec.com/nvd/cve-2010-4756                   │
│         ├──────────────────┤          │          │                   ├───────────────┼─────────────────────────────────────────────────────────────┤
│         │ CVE-2018-20796   │          │          │                   │               │ glibc: uncontrolled recursion in function                   │
│         │                  │          │          │                   │               │ check_dst_limits_calc_pos_1 in posix/regexec.c              │
│         │                  │          │          │                   │               │ https://avd.aquasec.com/nvd/cve-2018-20796                  │
│         ├──────────────────┤          │          │                   ├───────────────┼─────────────────────────────────────────────────────────────┤
│         │ CVE-2019-1010022 │          │          │                   │               │ glibc: stack guard protection bypass                        │
│         │                  │          │          │                   │               │ https://avd.aquasec.com/nvd/cve-2019-1010022                │
│         ├──────────────────┤          │          │                   ├───────────────┼─────────────────────────────────────────────────────────────┤
│         │ CVE-2019-1010023 │          │          │                   │               │ glibc: running ldd on malicious ELF leads to code execution │
│         │                  │          │          │                   │               │ because of...                                               │
│         │                  │          │          │                   │               │ https://avd.aquasec.com/nvd/cve-2019-1010023                │
│         ├──────────────────┤          │          │                   ├───────────────┼─────────────────────────────────────────────────────────────┤
│         │ CVE-2019-1010024 │          │          │                   │               │ glibc: ASLR bypass using cache of thread stack and heap     │
│         │                  │          │          │                   │               │ https://avd.aquasec.com/nvd/cve-2019-1010024                │
│         ├──────────────────┤          │          │                   ├───────────────┼─────────────────────────────────────────────────────────────┤
│         │ CVE-2019-1010025 │          │          │                   │               │ glibc: information disclosure of heap addresses of          │
│         │                  │          │          │                   │               │ pthread_created thread                                      │
│         │                  │          │          │                   │               │ https://avd.aquasec.com/nvd/cve-2019-1010025                │
│         ├──────────────────┤          │          │                   ├───────────────┼─────────────────────────────────────────────────────────────┤
│         │ CVE-2019-9192    │          │          │                   │               │ glibc: uncontrolled recursion in function                   │
│         │                  │          │          │                   │               │ check_dst_limits_calc_pos_1 in posix/regexec.c              │
│         │                  │          │          │                   │               │ https://avd.aquasec.com/nvd/cve-2019-9192                   │
└─────────┴──────────────────┴──────────┴──────────┴───────────────────┴───────────────┴─────────────────────────────────────────────────────────────┘
```
https://github.com/envoyproxy/gateway/actions/runs/12759297476/job/35562816116

Relates to #5034

Signed-off-by: Arko Dasgupta <[email protected]>
Co-authored-by: Guy Daich <[email protected]>
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

Successfully merging this pull request may close these issues.

Unable to run envoy binary inside envoy-gateway container image

3 participants