Page MenuHomePhabricator

Investigate systemd hardening to replace Firejail for Thumbor
Closed, InvalidPublic

Description

Currently we are running Thumbor under Firejail. Since we will be upgrading Thumbor servers to buster, we could investigate if we can get the same protection by enabling systemd hardening options.

In addition it makes sense to investigate if we additionally can wrap invocations to external converters like GhostScript in Firejail (with a profile similar to Mediawiki, i.e. restricting network use to a network namespace bound to localhost).

Mentioned in https://gerrit.wikimedia.org/r/#/c/operations/puppet/+/481139/

Update: Looks like it works alright, if we are to use it in prod, we need a condition to use systemd hardening only in stretch

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.
StatusSubtypeAssignedTask
Resolvedhnowlan
InvalidNone

Event Timeline

jijiki triaged this task as Medium priority.Jan 4 2019, 3:06 PM
jijiki created this task.

Change 482309 had a related patch set uploaded (by Muehlenhoff; owner: Muehlenhoff):
[operations/puppet@production] Switch Thumbor hardening from Firejail to native systemd features (WIP)

https://gerrit.wikimedia.org/r/482309

Change 482309 had a related patch set uploaded (by Jbond; owner: Muehlenhoff):
[operations/puppet@production] Switch Thumbor hardening from Firejail to native systemd features (WIP)

https://gerrit.wikimedia.org/r/482309

jijiki lowered the priority of this task from Medium to Low.Jun 21 2019, 12:04 PM
jijiki raised the priority of this task from Low to Medium.
jijiki lowered the priority of this task from Medium to Low.Jun 21 2019, 12:07 PM

Change 482309 abandoned by Muehlenhoff:
[operations/puppet@production] Switch Thumbor hardening from Firejail to native systemd features (WIP)

Reason:
old PoC

https://gerrit.wikimedia.org/r/482309

Thumbor is being migrated to k8s, making this task invalid :)