empire icon indicating copy to clipboard operation
empire copied to clipboard

Lock an empire app with a specific Docker repo

Open jperichon opened this issue 9 years ago • 3 comments

Right now, it's really easy for a dev to deploy an image from a different repository to an existing app. This can obviously cause a lot of damages :boom:

Is there any plan to add this protection?

jperichon avatar Mar 30 '16 14:03 jperichon

We have no immediate plans to add this ourselves, but I agree this would be a great addition as deploying a different Docker image would almost never be desirable (there's a couple of cases where it would be, like moving to a different Docker registry, but I think that could be handled with an extra flag to emp deploy).

ejholmes avatar Apr 02 '16 01:04 ejholmes

I worked around this by creating a manifest file that has 2 columns, app name and image version and another static file that defines app name and repository/base image name.

Then I have a 1-2 liner bash script that joins these up and spits the commands to deploy into empire.

To deploy new version(s) we just edit the manifest/versions file with the new set of versions then run the deploy script to deploy them all.

I also wrote one to deploy just 1 app using the same input files.

grimesjm avatar Apr 25 '16 15:04 grimesjm

On a related note, it would be nice if Empire integrated with content trust in Docker, so that you could only deploy images that you explicitly trust.

ejholmes avatar May 08 '16 08:05 ejholmes