Commit Graph

262 Commits

Author SHA1 Message Date
Gergő Jedlicska 0ad4fa9bff feat(workspaces): add workspace sso feature flag (#3084) 2024-09-24 10:59:06 +02:00
Iain Sproat a22a350627 chore(dockerfile): move to distroless (#2885) (#2897)
* Reapply "chore(dockerfile): move to distroless  (#2885)" (#2888)

This reverts commit 9d8cd0f351.

* Fix startup probe for objects pods
2024-09-06 09:43:35 +01:00
Iain Sproat 206b2368ba fix(preview-service): listen externally on metrics port (#2893) 2024-09-05 16:50:23 +01:00
Iain Sproat 9d8cd0f351 Revert "chore(dockerfile): move to distroless (#2885)" (#2888)
This reverts commit a1a3428737.
2024-09-05 15:03:47 +01:00
Iain Sproat a1a3428737 chore(dockerfile): move to distroless (#2885)
* chore(dockerfile): move to distroless
- remove unnecessary env vars (these are provided via the deployment system)
- uses relative paths if in a working directory

* Amend entrypoint for use with distroless

* Update startup probe & docker compose readiness probe
2024-09-05 14:28:26 +01:00
Iain Sproat 9db95f3471 fix(preview service): healthcheck timeout should be string format (#2872) 2024-09-04 14:08:56 +01:00
Iain Sproat 9a28e467ba refactor(preview-service): conforms to design patterns, adds tests, and is typed (#2429)
Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>
2024-09-04 13:06:23 +01:00
Iain Sproat d2f198a28b fix(helm chart): the objects service account should match server service account (#2822)
- the environment variables are shared between the two, so service accounts must match
2024-08-30 10:48:51 +02:00
Iain Sproat 131918b428 fix(server): default max multi-part file upload greater than objects (#2742)
- when sending Speckle objects to the server, they are batched into multi-part files
- a multi-part file therefore contains one or more Speckle objects
- the maximum limit for the multi-part file must therefore be greater than the maximum limit for a single Speckle object
2024-08-26 16:42:33 +01:00
Iain Sproat 26b0ecb55d chore(server): remove sentry and only apply mixpanel middleware if enabled (#2732)
- remove sentry as we are no longer using it
- only enable mixpanel middleware if mixpanel is enabled
2024-08-23 16:56:54 +01:00
Iain Sproat 1992b7a5e9 fix(helm chart): remove confusing duplicate max_object_size_mb property (#2707) 2024-08-20 14:17:33 +01:00
Iain Sproat 97321fd80e Increase max object size default to 100Mb for helm chart (#2692) 2024-08-19 20:25:36 +01:00
Iain Sproat afe1d1947f fix(helm chart): indentation typo (#2662) 2024-08-14 14:44:54 +01:00
Iain Sproat 9896d49058 fix(helm chart): server service account should have access to license token secret (#2661) 2024-08-14 15:16:31 +02:00
Iain Sproat 60251e45cb Revert "fix(server): revert 55cad9662a (#2633)" (#2650)
This reverts commit f2c5677b4a.
2024-08-13 11:48:20 +01:00
Iain Sproat 5c0c98c2f2 fix(helm): only expect license token if workspace feature is enabled (#2649) 2024-08-13 11:17:49 +01:00
Gergő Jedlicska 5818a44e62 Gatekeeper (#2572)
* feat(gatekeeper): initial license validation

* test(gatekeeper): add license token to tests

* chore(gatekeeper): cleanup

* chore(gatekeeper): hide from circleci

* feat(helm): load license token from secrets

* chore(circleci): remove unused env var
2024-08-13 11:04:40 +02:00
Mike 5b55d9e97e Feat: Add feature flag for multiple emails (#2639)
* Feat: Add feature flag for multiple emails

* Fix typo
2024-08-12 15:02:10 +02:00
Iain Sproat f2c5677b4a fix(server): revert 55cad9662a (#2633)
* Revert "refactor(server/upload): convert js to ts (#2618)"

This reverts commit e9f7286f67.

* Revert "feat(logging): pass request logger to core/services/objects (#2599)"

This reverts commit ee3e9af78d.

* Revert "feat(server): configurable maximum objects POST size and improved logging (#2594)"

This reverts commit 55cad9662a.
2024-08-12 10:26:53 +01:00
Iain Sproat 55cad9662a feat(server): configurable maximum objects POST size and improved logging (#2594) 2024-08-08 16:19:25 +01:00
Iain Sproat 47bd4cd4bc feat(health probes): use kubernetes native get instead of exec node fetch (#2445) 2024-08-07 12:22:31 +01:00
Iain Sproat 72bc7357c5 fix(helm): remove whitespace instruction for ghost api key env var (#2588) 2024-08-06 13:10:39 +01:00
Mike ad1f97216f Feat: Add new dashboard page (#2580) 2024-08-06 13:39:58 +02:00
Gergő Jedlicska 4f6bfb24f6 feat(helm): expose workspace module feature flag (#2566) 2024-08-02 13:04:30 +02:00
Iain Sproat 5096ba20d6 Revert "chore(helm chart): reduce readiness period and timeout (#2551)" (#2564)
This reverts commit b983cfab40.
2024-08-01 20:54:50 +01:00
Iain Sproat b983cfab40 chore(helm chart): reduce readiness period and timeout (#2551)
- we wish to rapidly react to unresponsive pods
2024-08-01 19:01:01 +01:00
Iain Sproat d32e3c0a71 chore(CI): temporarily disable docker compose deployment test & other fixes for race condition in docker compose deployment test (#2553) 2024-08-01 12:15:35 +01:00
Iain Sproat 0bb80bdc83 feat(helm): startup probe & faster responding readiness probe (#2523)
* feat(helm): startup probe & faster responding readiness probe
* fe2 does not yet support pretty printing
* Add comment for fe2 logPretty being disabled
2024-07-23 14:44:49 +01:00
Iain Sproat 55d51bd84f feat(db monitor): adds a new metric speckle_db_tablesize with db table sizes (#2474)
* feat(db queries): adds db query scripts for determining db sizes

* Adds a new metric `speckle_db_tablesize` with db table sizes

* lower case all the file types to provide a combined metric

* group file status count by lower cased file type

* reinstate accidentally deleted metric

* Fix developer script
2024-07-05 15:12:27 +01:00
Iain Sproat 34a65dd378 feat(helm): allow pretty-format logging to be enabled in helm chart (#2433)
* feat(helm): allow pretty-format logging to be enabled in helm chart

* fix json schema

* ensure helm linting occurs after the json schema is updated

* Booleans must be quoted when passed to environment variables
2024-06-25 19:12:03 +02:00
Iain Sproat 08d1bffdf6 chore(do/1-click): sunset DigitalOcean 1-click app (#2074) 2024-06-21 17:26:04 +01:00
Iain Sproat 2e59d231b5 feat(preview-service): allow metrics port to be configured (#2421)
* feat(preview-service): allow metrics port to be configured

* Allow configurable port
2024-06-21 17:04:23 +01:00
Iain Sproat b5452ded00 fix(ingress): simplify ingress and avoid regex warning (#2187)
- removes regex from ingress to avoid confusion over warning: https://github.com/kubernetes/ingress-nginx/issues/10200
- improves readability at expense of conciseness
2024-06-21 14:46:34 +01:00
Iain Sproat 69757fba61 feat(preview-service): remove SYS_ADMIN capability requirement (#2414)
* fix(preview-service): avoid SYS_ADMIN capabilities
2024-06-20 14:33:26 +01:00
Iain Sproat 5dcd149160 fix(preview service): create dockerfile using puppeteer's example dockerfile (#2408) 2024-06-19 18:46:00 +01:00
Iain Sproat 7e6f31ad66 chore(health): add dedicated liveness and readiness endpoints (#1987)
* chore(health): add dedicated liveness and readiness endpoints
- provides more flexibility in defining what constitutes readiness and liveness
* add tests for /liveness and /readiness
* Prevent liveness and readiness endpoints being exposed externally by redirecting their routes
2024-06-18 12:49:03 +01:00
github-actions[bot] a79680da00 Update image digests (#2203)
Signed-off-by: specklebot <devops@speckle.systems>
Co-authored-by: specklebot <devops@speckle.systems>
2024-06-18 10:18:46 +01:00
dependabot[bot] 458ab11682 chore(deps): bump requests in /utils/test-deployment (#2386)
Bumps [requests](https://github.com/psf/requests) from 2.31.0 to 2.32.2.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.31.0...v2.32.2)

---
updated-dependencies:
- dependency-name: requests
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 10:03:34 +01:00
Kristaps Fabians Geikins ef4bb520cf fix(fe2): ugly function card hydration issue (#2381)
* fix(fe2): ugly function card hydration issue

* comment adjustment

* minor optimization
2024-06-18 08:40:25 +03:00
Gergő Jedlicska 84ac3e4598 fix: update helm values schema 2024-06-17 18:53:21 +02:00
Dimitrie Stefanescu de3b5ac440 feat(objs): adds corresponding values.yaml 2024-06-17 16:47:17 +01:00
Dimitrie Stefanescu cab4f41bdc feat(objs): adds helmchart var for FF_NO_CLOSURE_WRITES 2024-06-17 15:57:45 +01:00
Kristaps Fabians Geikins bd042bd5b3 chore: remove raygun, debugbear etc. code (#2364) 2024-06-13 12:06:53 +03:00
Kristaps Fabians Geikins 83d8035dc2 chore: upgrade to eslint 9 (#2348)
* root + server

* frontend

* frontend-2

* dui3

* dui3

* tailwind theme

* ui-components

* preview service

* viewer

* viewer-sandbox

* fileimport-service

* webhook service

* objectloader

* shared

* ui-components-nuxt

* WIP full config

* WIP full linter

* eslint projectwide util

* minor fix

* removing redundant ci

* clean up test errors

* fixed prettier formatting

* CI improvements

* TSC lint fix

* 'buildBatch' needs to be async since some batch types (like Text) require it. Removed a disabled liniting rule from ObjLoader

* removed unnecessary void

---------

Co-authored-by: AlexandruPopovici <alexandrupopoviciioan@gmail.com>
2024-06-12 14:38:02 +03:00
Iain Sproat b6fbb411a3 chore(helm chart): fe2 enabled by default (#2357)
* chore(helm chart): fe2 enabled by default

* updates helm chart documentation
2024-06-12 10:19:21 +01:00
Kristaps Fabians Geikins 2f8272b6ae feat(shared): modularized package & node16 support (#2336)
* feat(shared): modularized package & node16 support

* lockfile update

* various fixes

* moar fixes

* added znv and zod as devdeps of shared

* lockfile update
2024-06-11 14:12:13 +03:00
Iain Sproat 19cf4d52fc refactor(helm chart): template to produce identical environment variables for both server & objects pods (#2304)
* fix(helm chart): objects pod should also have automate feature flag env vars

* refactor(helm chart): share environment variables between server & objects pods
- use a template to configure the same set of environment variables for both server & objects pods
2024-05-30 17:59:56 +02:00
Iain Sproat b19b9d70d8 fix(helm chart): objects pod should also have automate feature flag e… (#2303)
* fix(helm chart): objects pod should also have automate feature flag env vars
2024-05-30 15:34:13 +01:00
Dimitrie Stefanescu 35ed179799 Dim/gendo (#2283)
* feat(gendo): scaffolding

* feat(gendo): wip

* feat(gendo): wip

* feat(gendo): wip

* feat(gendo): wip

* feat(gendo): wip

* feat(gendo): it's alive

* feat(gendo): wip

* feat(gendo): blobifies responses to make gergo happy

* feat(gendo): ratelimiting + lints

* feat(gendo): prettier fix

* feat(gendo): last fixes

* feat(gendo): clarifications

* feat(gendo): helm base

* update helm values and deployment to use secrets and allow them to be configured

* Allow the rate limiter to be configured

* Use valid Gendo AI api as default

* fix(helm chart): environment variables should be strings

---------

Co-authored-by: Iain Sproat <68657+iainsproat@users.noreply.github.com>
2024-05-29 11:48:17 +02:00
Gergő Jedlicska 60134bc1c3 feat(helm): add configurable encryptionKeys path value to helm chart (#2290)
* feat(helm): add configurable encryptionKeys path value to helm chart

* feat(helm): nest encryptionKeys.path
2024-05-28 05:20:06 +02:00