You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Delay between a release (minor release with security fixes) and Docker images available on hub #168
This delay can allow attackers to exploit a vulnerability in node core on Docker based systems. Last time I remember there was a delay of 1 day (which is not a lot) but still has to be considered as an attack vector.
I'm not aware of the delay times but I agree if this is indeed the issue.
I believe this falls under the scope of the core nodejs/security team as this relates to job setup and such. Should we ping nodejs code security for more info on this?
I think it will also involve the @nodejs/docker team as they do the updates which trigger new docker images to be built. It may be that they need to be part of the security release process so that the commits can be landed as soon as possible after the releases are available.
@Starefossen is right, most of the update processes in the docker-node repository go fast, but we'll need the approval with Docker in the official-images repository, so it'll be a delay.
Another issue is that the members of @nodejs/docker have no control of our Travis CI, thus we can't stop the invalid or useless builds, and it takes a while to finish the all the CI tasks, that's also the part maybe we could improve.
Getting a new version into master of docker-node as quickly as possible (and PRing docker hub), maybe even coordinating with the docker hub folks to have them ready to start the merging process beforehand, would be really good, I think.
So, what about for security releases holding the main release for another
12-24 hours till docker is ready? If there is no disclosure of the vuln it
is ok-ish. The world is moving towards Docker and we need to think of an
scenario where 90% of users will be Docker based.
@dgonzalez Holding the main release won't work currently, because official Docker images are built from public sources by design. So anyone can see which release tarball is used and access it.
Delaying disclosure of the actual vulnerabilities is a good idea though.
@pesho and what about prepare the build on a private repository and at the moment of release PR into the repo and build it?
I am also ok on the delaying disclosure. I am a big fan on disclosing as early as possible but 12-24 hours won't make a huge difference. Said that, the commit history will surely show what was fixed and an avid hacker can use it as an attack vector.
@pesho and what about prepare the build on a private repository and at the moment of release PR into the repo and build it?
This will help a bit, but not enough. The Travis build will still take about 40 minutes (due to having to build for Alpine), and then it still must be submitted to Docker Inc. and wait for their separate review and approval.
There was feedback in the Enterprise user-feedback session today that this does cause anxiety for them. The feedback is that when we say you need up update quickly that activates processes in the and then they are under pressure while they have to wait a day for the release.
@Starefossen do we have any contacts at docker that we would talk to about the review delay for security releases? I can understand that for normal releases but I wonder if there is some way we can expedite by giving them advance notice of when a release will be coming.
There is a process where, if a PR is tagged with "[Security release]" in the title, it will be prioritised by the Docker team. But I'm not sure how formal that process is, or what, if any, guarantees are given about response time.
CI is still a big issue to us we, as I mentioned, @nodejs/docker has no permission to stop, restart any certain CI tasks, also, Travis CI sometimes hangs, reason unknown.
Oh boy, this is the first day of DockerCon, this'll be fun 😅
We'll make it work, the most helpful would be more details on the rough timing we'll see so we can be on the lookout for it (especially since we'll be in conference mode). 👍
@mhdawson I think that went reasonably well? Only hitch was waiting on approval for merge in nodejs/docker-node#783. I think an admin in the organisation would be able to just merge it, but it's maybe not a big deal?
@SimenB I agree it went reasonably, not being able to merge was the main surprise and I agree that we should let at least some people approve and merge, especially in the case of a security release.
I took a first cut at documenting the process here: #306
As a TSC member I think I'm an org admin, and whatever is in place to prevent a push without a review blocked me as well. Both in the UI and also from pushing manually from the git command line.
There was some discussion of improvements to make to the process, and also some delays that are unavoidable. I know the sec release process includes a heads up to the docker team so they know a release is coming.
If the concerns that are addressable have been addressed, can this be closed now, @mhdawson@dgonzalez @nodejs/docker ?
Activity
lirantal commentedon Mar 20, 2018
I'm not aware of the delay times but I agree if this is indeed the issue.
I believe this falls under the scope of the core nodejs/security team as this relates to job setup and such. Should we ping nodejs code security for more info on this?
dgonzalez commentedon Mar 20, 2018
mhdawson commentedon Mar 21, 2018
I think it will also involve the @nodejs/docker team as they do the updates which trigger new docker images to be built. It may be that they need to be part of the security release process so that the commits can be landed as soon as possible after the releases are available.
Starefossen commentedon Mar 21, 2018
New versions for Official Docker Images needs to go through approval with Docker Inc. hence the 12-24h delay.
PeterDaveHello commentedon Mar 22, 2018
@Starefossen is right, most of the update processes in the docker-node repository go fast, but we'll need the approval with Docker in the official-images repository, so it'll be a delay.
Another issue is that the members of @nodejs/docker have no control of our Travis CI, thus we can't stop the invalid or useless builds, and it takes a while to finish the all the CI tasks, that's also the part maybe we could improve.
SimenB commentedon Mar 22, 2018
Sorta related: nodejs/node#14190
Getting a new version into master of docker-node as quickly as possible (and PRing docker hub), maybe even coordinating with the docker hub folks to have them ready to start the merging process beforehand, would be really good, I think.
dgonzalez commentedon Mar 22, 2018
pesho commentedon Mar 22, 2018
@dgonzalez Holding the main release won't work currently, because official Docker images are built from public sources by design. So anyone can see which release tarball is used and access it.
Delaying disclosure of the actual vulnerabilities is a good idea though.
LaurentGoderre commentedon Mar 22, 2018
Having a binary for alpine would also help speed up the updating of docker images but there isn't a consensus on this ATM.
nodejs/build#75
dgonzalez commentedon Mar 22, 2018
@pesho and what about prepare the build on a private repository and at the moment of release PR into the repo and build it?
I am also ok on the delaying disclosure. I am a big fan on disclosing as early as possible but 12-24 hours won't make a huge difference. Said that, the commit history will surely show what was fixed and an avid hacker can use it as an attack vector.
pesho commentedon Mar 22, 2018
This will help a bit, but not enough. The Travis build will still take about 40 minutes (due to having to build for Alpine), and then it still must be submitted to Docker Inc. and wait for their separate review and approval.
mhdawson commentedon Apr 27, 2018
There was feedback in the Enterprise user-feedback session today that this does cause anxiety for them. The feedback is that when we say you need up update quickly that activates processes in the and then they are under pressure while they have to wait a day for the release.
@Starefossen do we have any contacts at docker that we would talk to about the review delay for security releases? I can understand that for normal releases but I wonder if there is some way we can expedite by giving them advance notice of when a release will be coming.
SimenB commentedon Apr 27, 2018
There is a process where, if a PR is tagged with "[Security release]" in the title, it will be prioritised by the Docker team. But I'm not sure how formal that process is, or what, if any, guarantees are given about response time.
@tianon and/or @yosifkit might be able to weigh in on this?
chorrell commentedon Apr 27, 2018
We're also dealing with timezone differences.
14 remaining items
PeterDaveHello commentedon Jun 6, 2018
CI is still a big issue to us we, as I mentioned, @nodejs/docker has no permission to stop, restart any certain CI tasks, also, Travis CI sometimes hangs, reason unknown.
tianon commentedon Jun 6, 2018
Oh boy, this is the first day of DockerCon, this'll be fun 😅
We'll make it work, the most helpful would be more details on the rough timing we'll see so we can be on the lookout for it (especially since we'll be in conference mode). 👍
SimenB commentedon Jun 13, 2018
@mhdawson I think that went reasonably well? Only hitch was waiting on approval for merge in nodejs/docker-node#783. I think an admin in the organisation would be able to just merge it, but it's maybe not a big deal?
LaurentGoderre commentedon Jun 13, 2018
I get a lot of notifications on GitHub. Maybe in the future it would be nice to get a direct email?
SimenB commentedon Jun 13, 2018
I don't think security releases should need approval in the first place, but I think only org admins can ignore stuff like that
chorrell commentedon Jun 13, 2018
I agree, they should be able to to approve and merge when they need to
mhdawson commentedon Jun 13, 2018
@SimenB I agree it went reasonably, not being able to merge was the main surprise and I agree that we should let at least some people approve and merge, especially in the case of a security release.
I took a first cut at documenting the process here: #306
mhdawson commentedon Jun 13, 2018
As a TSC member I think I'm an org admin, and whatever is in place to prevent a push without a review blocked me as well. Both in the UI and also from pushing manually from the git command line.
SimenB commentedon Jun 13, 2018
Hmm, OK. Not sure how to get around it, then. Maybe the bottom box is checked in this form (screenshot from another repo)?
mhdawson commentedon Jun 14, 2018
Yup,
SimenB commentedon Jun 14, 2018
So in theory removing the "include administrators" would help?
mhdawson commentedon Jun 18, 2018
@SimenB I think so.
sam-github commentedon Apr 16, 2019
There was some discussion of improvements to make to the process, and also some delays that are unavoidable. I know the sec release process includes a heads up to the docker team so they know a release is coming.
If the concerns that are addressable have been addressed, can this be closed now, @mhdawson @dgonzalez @nodejs/docker ?
mhdawson commentedon Apr 18, 2019
I think this can be closed.