Uh oh!
There was an error while loading. Please reload this page.
Add application service support to blueprints - #74
Conversation
Split out from #68
79216e5 to
cf4d8e9CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| var buf bytes.Buffer | ||
| tw := tar.NewWriter(&buf) | ||
| err = tw.WriteHeader(&tar.Header{ | ||
| Name: fmt.Sprintf("/appservices/%s.yaml", asID), |
There was a problem hiding this comment.
Please can we do filepath escapes here, as I would like to in the future allow untrusted Blueprint input.
There was a problem hiding this comment.
I assume you mean using client.GjsonEscape?
There was a problem hiding this comment.
I mean path escaping so you can't have an asID like ../../../etc/passwd
kegsay
left a comment
There was a problem hiding this comment.
Love it, just a few minor issues to resolve!
- Seems like the `Volumes` syntax is to create an anonymous volume, https://stackoverflow.com/a/58916037/796832 - And lots of people not knowing what `Volumes` syntax is or what to do. Seems like Mounts is the thing to use - fsouza/go-dockerclient#155 - https://stackoverflow.com/questions/55718603/golang-docker-library-mounting-host-directory-volumes - https://stackoverflow.com/questions/48470194/defining-a-mount-point-for-volumes-in-golang-docker-sdk
5ca8a8a to
1b19990CompareUh oh!
There was an error while loading. Please reload this page.
kegsay
commented
Feb 23, 2021
LGTM |
MadLittleMods
commented
Feb 23, 2021
Woot! Thanks for the review @kegsay 🐊 |
Add application service support to blueprints
as_tokento interact with the homserver APInamespacespart of the app service registration configURLSplit out from #68