Commit Graph

651 Commits

Author SHA1 Message Date
Sebastian Serth
b98e3deb40 Rebuild base image for e2e images as well 2022-10-29 19:11:05 +02:00
Maximilian Paß
b3eee17846 Support protected directories
by setting the sticky bit to all explicitly requested directories.
2022-10-29 19:11:05 +02:00
Sebastian Serth
b1de6faa03 Update Nomad in CI 2022-10-27 19:46:26 +02:00
dependabot[bot]
31167c31e8 Merge pull request #246 from openHPI/dependabot/go_modules/github.com/hashicorp/nomad-1.4.2 2022-10-27 15:19:11 +00:00
dependabot[bot]
303e749ada Bump github.com/hashicorp/nomad from 1.4.1 to 1.4.2
Bumps [github.com/hashicorp/nomad](https://github.com/hashicorp/nomad) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/hashicorp/nomad/releases)
- [Changelog](https://github.com/hashicorp/nomad/blob/v1.4.2/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/nomad/compare/v1.4.1...v1.4.2)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/nomad
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-27 15:11:00 +00:00
Sebastian Serth
acb4d24c45 Change loglevel for context cancellation to DEBUG 2022-10-26 16:18:35 +02:00
Maximilian Paß
5e5e13806e Monitor file download. 2022-10-26 01:33:26 +02:00
Maximilian Paß
939f36dac6 Fix e2e test exhausted cpu
by decreasing the reservation amount.
2022-10-26 01:27:33 +02:00
Sebastian Serth
b1027a907d Update versions in GitHub Action workflow 2022-10-25 11:49:34 +01:00
Sebastian Serth
8061004dd0 Update Dependencies 2022-10-25 11:49:34 +01:00
Maximilian Paß
28fb0ca61c Catch context canceled error 2022-10-25 09:36:52 +02:00
Maximilian Paß
160df3d9e6 Add retry-mechanism for sample, mark-as-used and return
of Nomad runners.
2022-10-24 22:12:09 +01:00
Maximilian Paß
b9c923da8a Remove unused and deprecated Storer interface. 2022-10-24 22:12:09 +01:00
Maximilian Paß
7119f3e012 Fix not canceling monitoring events for removed environments
and runners.
2022-10-24 13:15:14 +02:00
Maximilian Paß
5d54b0f786 Fix wrong environment id at monitoring
data for created or updated environments.
2022-10-24 13:15:14 +02:00
Maximilian Paß
a1d30f00c6 OpenAPI Add token and version prefix. 2022-10-24 12:58:16 +02:00
dependabot[bot]
ff267dbde0 Merge pull request #237 from openHPI/dependabot/go_modules/github.com/stretchr/testify-1.8.1 2022-10-24 03:28:01 +00:00
dependabot[bot]
ad5dfb41ad Bump github.com/stretchr/testify from 1.8.0 to 1.8.1
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.0...v1.8.1)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-24 03:19:22 +00:00
Sebastian Serth
b0a1531ef5 Setup Go for lint action 2022-10-23 10:53:05 +02:00
Sebastian Serth
c63cc2f80a Update GitHub Action workflow versions 2022-10-23 10:28:41 +02:00
Maximilian Paß
3e9606d1b9 Fix flaky e2e tests because of no idle runners
at startup.
2022-10-14 21:40:09 +01:00
dependabot[bot]
50c2adb386 Bump github.com/hashicorp/nomad from 1.3.5 to 1.4.1
Bumps [github.com/hashicorp/nomad](https://github.com/hashicorp/nomad) from 1.3.5 to 1.4.1.
- [Release notes](https://github.com/hashicorp/nomad/releases)
- [Changelog](https://github.com/hashicorp/nomad/blob/v1.4.1/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/nomad/compare/v1.3.5...v1.4.1)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/nomad
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-10 21:20:56 +02:00
dependabot[bot]
802a654441 Bump github.com/getsentry/sentry-go from 0.13.0 to 0.14.0
Bumps [github.com/getsentry/sentry-go](https://github.com/getsentry/sentry-go) from 0.13.0 to 0.14.0.
- [Release notes](https://github.com/getsentry/sentry-go/releases)
- [Changelog](https://github.com/getsentry/sentry-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-go/compare/v0.13.0...v0.14.0)

---
updated-dependencies:
- dependency-name: github.com/getsentry/sentry-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-05 13:45:31 +02:00
Maximilian Paß
3509109b6f Fix Ls2JsonWriter
by allowing more spaces in the ls response.
by sending the error response of the list file system route only when no content has been written.
2022-10-05 12:11:47 +01:00
Maximilian Paß
195f88177e Add Content-Length and Content-Disposition Header
for GetFileContent route.
2022-10-05 12:11:47 +01:00
Maximilian Paß
0c70ad3b24 Enable unprivileged retrieve of file listing and content. 2022-10-05 12:11:47 +01:00
Maximilian Paß
0218b3589a Add openAPI definition of the WebSocket endpoint. 2022-10-05 12:11:47 +01:00
Maximilian Paß
847e5cda65 Extend ls2json reader
by also parsing the link target, permissions, group and owner.
2022-10-05 12:11:47 +01:00
Maximilian Paß
3469d0ce77 Specify http not found exit code
by replacing it with StatusGone (410) for a missing runner and StatusFailedDependency (424) for missing or not accessible files.
2022-10-05 12:11:47 +01:00
Maximilian Paß
fc77f11d4d Enquote file path for shell execution.
Also, fix json of 500 response.
2022-10-05 12:11:47 +01:00
Maximilian Paß
152b77afe5 Add listing of runners file system. 2022-10-05 12:11:47 +01:00
Maximilian Paß
c7ee7c1e25 Remove superfluous response.WriteHeader call
as the Write of the responseWriter automatically sends also the Header.
2022-10-05 12:11:47 +01:00
Maximilian Paß
f2b25566dd #136 Copy files back from Nomad runner. 2022-10-05 12:11:47 +01:00
Maximilian Paß
ae7b3ccd58 Add api definition for copying files back from the runner. 2022-10-05 12:11:47 +01:00
Sebastian Serth
b30223bf58 Specify requirements for Docker images
Closes #3 [ci skip]
2022-10-04 15:27:49 +02:00
Sebastian Serth
28872f8269 Clean outdated dependencies 2022-10-04 10:21:07 +02:00
Sebastian Serth
60c6af03a4 Update Dependencies 2022-10-04 10:04:52 +02:00
dependabot[bot]
bd5cc80937 Bump github.com/influxdata/influxdb-client-go/v2 from 2.10.0 to 2.11.0
Bumps [github.com/influxdata/influxdb-client-go/v2](https://github.com/influxdata/influxdb-client-go) from 2.10.0 to 2.11.0.
- [Release notes](https://github.com/influxdata/influxdb-client-go/releases)
- [Changelog](https://github.com/influxdata/influxdb-client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/influxdata/influxdb-client-go/compare/v2.10.0...v2.11.0)

---
updated-dependencies:
- dependency-name: github.com/influxdata/influxdb-client-go/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-04 10:00:17 +02:00
Sebastian Serth
1a5a49d7c8 Explicitly switch user for code execution.
Co-authored-by: Maximilian Pass <maximilian.pass@student.hpi.uni-potsdam.de>
2022-09-24 23:09:23 +02:00
Sebastian Serth
69237fb415 Use local Docker image in e2e pipeline and rebuild image if necessary 2022-09-24 23:09:23 +02:00
Sebastian Serth
7454e577e4 Allow using a local Docker image, e.g., for tests 2022-09-24 23:09:23 +02:00
Sebastian Serth
15b9117382 Update ansible-deployment 2022-09-22 20:18:20 +02:00
Sebastian Serth
d372e37d1a Add cni/secure-bridge to isolate host network 2022-09-18 19:02:04 +02:00
Sebastian Serth
1df9701a74 Update example config with lowercase keys 2022-09-18 18:42:00 +02:00
Sebastian Serth
ce14c116be Remove deprecated (and ignored) server option 2022-09-18 18:41:59 +02:00
Sebastian Serth
2a234538ca Update Dependencies 2022-09-18 12:24:02 +02:00
Sebastian Serth
3154c03f8a Recommend using gVisor as a sandbox 2022-09-07 22:19:20 +02:00
Maximilian Paß
89fc7b2637 Fix Nomad event stream is ignoring errors
when an event stream could be established once.
2022-09-07 21:16:20 +02:00
Maximilian Paß
e8457ca035 Remove monitoring debug statement. 2022-08-31 09:19:07 +02:00
Maximilian Paß
549d147870 Fix missing environment id for monitoring data. 2022-08-31 08:49:07 +02:00