Skip to content

Proper way to back up Ghost when using a distroless image #587

@ktlast

Description

@ktlast

Greetings!

To be clear, this is more of a question or discussion than a direct feature request.

Is your feature request related to a problem? Please describe.
Since the image is hardened by using a distroless base image, no commands can be executed inside the Ghost pod. This behavior is expected, as it aligns with the security goals of distroless.
But I found that it can be tedious to do a periodically backup from UI, which is the only way to backup the ghost as far as I know.


Describe the solution you'd like
I don't have a good idea so far about what kind of solutions would be better. I just hope there is a better way to automate backup periodically via CronJob or something similar without compromising security.


Describe alternatives you've considered
I have tried introducing a sidecar in the deployment to do the backup job by the ghost command after altered certain permission settings. But this reintroduce security risk that the hardened image was designed to mitigate in the first place.


Thank you for taking the time to read this issue 😊.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or request

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions