7 Commits

Author SHA1 Message Date
Jimmy Berry
2a3def39fd obs_operator: verify that origin root-domain matches host domain.
Reduces the attack surface by limiting sites that can initiate a
cross-domain request to sub-domains of the domain on which the operator
server is running.
2019-03-26 18:21:06 -05:00
Jimmy Berry
d3ff38cbf8 obs_operator: raise exceptions when osc request environment cannot be aquired. 2019-03-25 17:47:07 -05:00
Jimmy Berry
cdb99a1f1a obs_operator: calculate apiurl from host instead of origin header.
Debated originally, but was attempting to allow operator to run on
different domain from request origin and handle multiple origins. This
does not work in practice since openSUSE and SUSE https certs are not
present on same machine. As such, host works better since it allows for
non-cross-origin requests to work without having to specify an apiurl
in startup arguments.
2019-03-25 17:46:14 -05:00
Jimmy Berry
0734bf756c obs_operator: expose osc-plugin-origin commands via GET. 2019-03-20 19:18:05 -05:00
Jimmy Berry
2c45688f2f obs_operator: extract osc environment setup as with object. 2019-03-20 19:18:05 -05:00
Jimmy Berry
441ea7167a obs_operator: use unbuffered output to work properly in systemd. 2018-11-26 16:01:45 -06:00
Jimmy Berry
3d0832f97d obs_operator: provide initial version of server. 2018-11-08 16:08:19 -06:00