Skip to content

ci: use host docker gid for envoybuild#23803

Merged
lizan merged 1 commit intoenvoyproxy:mainfrom
lizan:ci_docker_gid
Nov 2, 2022
Merged

ci: use host docker gid for envoybuild#23803
lizan merged 1 commit intoenvoyproxy:mainfrom
lizan:ci_docker_gid

Conversation

@lizan
Copy link
Copy Markdown
Member

@lizan lizan commented Nov 2, 2022

Previously /var/run/docker.sock is readable/writable inside docker run because group ID of envoygroup coincidentally matches host docker group, while it is no longer true during rolling out new image. Fixing that by forcing envoygroup has host docker group ID.

Risk Level: Low
Testing: CI
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
@repokitteh-read-only
Copy link
Copy Markdown

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #23803 was opened by lizan.

see: more, trace.

@lizan
Copy link
Copy Markdown
Member Author

lizan commented Nov 2, 2022

@lizan lizan marked this pull request as ready for review November 2, 2022 20:42
@lizan lizan requested a review from phlax November 2, 2022 20:42
Copy link
Copy Markdown
Member

@phlax phlax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks @lizan

@lizan lizan merged commit 7ac5336 into envoyproxy:main Nov 2, 2022
@lizan lizan deleted the ci_docker_gid branch November 2, 2022 22:40
@lizan
Copy link
Copy Markdown
Member Author

lizan commented Nov 2, 2022

/backport

@repokitteh-read-only repokitteh-read-only Bot added the backport/review Request to backport to stable releases label Nov 2, 2022
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 3, 2022
Previously `/var/run/docker.sock` is readable/writable inside docker run because group ID of `envoygroup` coincidentally matches host docker group, while it is no longer true during rolling out new image. Fixing that by forcing `envoygroup` has host docker group ID.

Risk Level: Low
Testing: CI
Docs Changes:
Release Notes:
Platform Specific Features:

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 3, 2022
Previously `/var/run/docker.sock` is readable/writable inside docker run because group ID of `envoygroup` coincidentally matches host docker group, while it is no longer true during rolling out new image. Fixing that by forcing `envoygroup` has host docker group ID.

Risk Level: Low
Testing: CI
Docs Changes:
Release Notes:
Platform Specific Features:

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
phlax pushed a commit that referenced this pull request Nov 3, 2022
Previously `/var/run/docker.sock` is readable/writable inside docker run because group ID of `envoygroup` coincidentally matches host docker group, while it is no longer true during rolling out new image. Fixing that by forcing `envoygroup` has host docker group ID.

Risk Level: Low
Testing: CI
Docs Changes:
Release Notes:
Platform Specific Features:

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
dio added a commit to dio/envoy that referenced this pull request Nov 4, 2022
…ts of test data to fix flaky tests

Cherry-picked from:

- envoyproxy#23803 (7ac5336) @lizan
- envoyproxy#23817 (051c119) @WPCode

Signed-off-by: Dhi Aurrahman <dio@rockybars.com>
dio added a commit to dio/envoy that referenced this pull request Nov 4, 2022
Previously `/var/run/docker.sock` is readable/writable inside docker run because group ID of `envoygroup` coincidentally matches host docker group, while it is no longer true during rolling out new image. Fixing that by forcing `envoygroup` has host docker group ID.

Cherry-picked from: 7ac5336.

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Dhi Aurrahman <dio@rockybars.com>
phlax pushed a commit that referenced this pull request Nov 4, 2022
…23837)

* backport: ci: use host docker gid for envoybuild (#23803)

Previously `/var/run/docker.sock` is readable/writable inside docker run because group ID of `envoygroup` coincidentally matches host docker group, while it is no longer true during rolling out new image. Fixing that by forcing `envoygroup` has host docker group ID.

Cherry-picked from: 7ac5336.

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Dhi Aurrahman <dio@rockybars.com>

* deps: update Ragel (#22635)

Commit Message: deps: update Ragel
Additional Description:

A thread of Ragel and its license has been opened in the Slack channel today. Currently, Ragel is under GPLv2. It is legal to use Ragel as a tool to compile, but we have to compile Ragel in Envoy's building system and there is potential risk of the copyright. The patch updates Ragel to the latest version with MIT license to suppress the concern.

Risk Level: Low
Testing: N/A
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
Signed-off-by: Dhi Aurrahman <dio@rockybars.com>

* Conflict

Signed-off-by: Dhi Aurrahman <dio@rockybars.com>

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Dhi Aurrahman <dio@rockybars.com>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 7, 2022
Previously `/var/run/docker.sock` is readable/writable inside docker run because group ID of `envoygroup` coincidentally matches host docker group, while it is no longer true during rolling out new image. Fixing that by forcing `envoygroup` has host docker group ID.

Risk Level: Low
Testing: CI
Docs Changes:
Release Notes:
Platform Specific Features:

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
phlax pushed a commit that referenced this pull request Nov 8, 2022
Previously `/var/run/docker.sock` is readable/writable inside docker run because group ID of `envoygroup` coincidentally matches host docker group, while it is no longer true during rolling out new image. Fixing that by forcing `envoygroup` has host docker group ID.

Risk Level: Low
Testing: CI
Docs Changes:
Release Notes:
Platform Specific Features:

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Ryan Northey <ryan@synca.io>
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 11, 2022
Previously `/var/run/docker.sock` is readable/writable inside docker run because group ID of `envoygroup` coincidentally matches host docker group, while it is no longer true during rolling out new image. Fixing that by forcing `envoygroup` has host docker group ID.

Risk Level: Low
Testing: CI
Docs Changes:
Release Notes:
Platform Specific Features:

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Dario Cillerai <dcillera@redhat.com>

Signed-off-by: Ryan Northey <ryan@synca.io>
phlax pushed a commit that referenced this pull request Nov 15, 2022
Previously `/var/run/docker.sock` is readable/writable inside docker run because group ID of `envoygroup` coincidentally matches host docker group, while it is no longer true during rolling out new image. Fixing that by forcing `envoygroup` has host docker group ID.

Risk Level: Low
Testing: CI
Docs Changes:
Release Notes:
Platform Specific Features:

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Dario Cillerai <dcillera@redhat.com>

Signed-off-by: Ryan Northey <ryan@synca.io>
@phlax phlax removed the backport/review Request to backport to stable releases label Jan 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

Successfully merging this pull request may close these issues.

2 participants