Add phanpy service #188
No reviewers
Labels
No labels
Blocked
Existing Service
Infrastructure Issue
Refactor
Security Hardening
Security Issue
Service Idea
Service Removal
Upgrade service
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: data.coop/ansible#188
Loading…
Reference in a new issue
No description provided.
Delete branch "reynir/ansible:phanpy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Together with this hack we can deploy phanpy and update the content on new releases https://git.data.coop/reynir/phanpy
@ -0,0 +15,4 @@
cap_add:
- NET_ADMIN
devices:
- "/dev/net/tun"
What's this needed for?
It is needed to deconfigure the network, set up a bridge and a tap device like in the other unipi instances we run. For further details see entrypoint.sh in docker-unipi. Ideally, this would be handled by a docker network provider, but who has time to learn that?!
There is definitely room for deduplicating code. Each unipi instance requires largely the same configuration except the domain name and
--remote
is different. I haven't figured out how to refactor this yet.But doesn't it just need to set up the network interface for the container itself? I.e. inside the container? It doesn't need to modify anything outside the container, right?
Correct, but you still need
CAP_NET_ADMIN
.@ -157,2 +157,4 @@
volume_folder: "{{ volume_website_folder }}/cryptoaarhus"
phanpy_website:
domain: "phanpy.data.coop"
Let's change this to
phanpy.{{ base_domain }}
.Done in
65527be1f0
.722a4aba9c
to65527be1f0
If phanpy had an XSS vulnerability, for instance through unescaped messages or third-party libraries, do we then restrict through HTTP Headers?
No. How does that work?
Sorry, was writing while distracted. I mean security headers like in this example: https://gist.github.com/ambroisemaupate/bce4b760405558f358ae
I can try to dig out what is appropriate for phanpy...
Unipi (the http server used for this) doesn't support adding extra headers at the moment (it would be nice to add and likely not too difficult to do; I'll look into it). In the interim we can add a vhost file to the nginx proxy.
I should maybe try to add an Nginx configuration file in my own setup and see if it works... https://git.data.coop/benjaoming/phanpy/src/branch/main/Dockerfile
Jeg har været i gang med at lave nogle forsøg, men jeg tænker at #218 skal fikses, før det kommer videre....
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.