Commit Graph

45 Commits

Author SHA1 Message Date
Rory Powell 976b3a55ca Update logging to support dd trace attributes (#10086)
* Update logging middleware to integrate with pino for console logging

* Remove elastic apm references, use updated core middlewares

* Remove redundant LOG_LEVEL definitions

* Remove no longer needed jest logging overrides

* lint

* Backwards compat between console log helpers and pino

* Configurable DISABLE_HTTP_LOGGING

* Don't log 4xx as errors

* Remove redundant ENABLE_4XX_HTTP_LOGGING

* Cleanup migrations and event logging

* Improve bb-alert logging

* Add DISABLE_HTTP_LOGGING to helm chart

* Add ops endpoints for testing

* Disable http logging in dev

* Backwards compatible tracing implementation

* Naming update on http logging env var

* lint

* Update packages/backend-core/src/environment.ts

Co-authored-by: Adria Navarro <adria@revityapp.com>

* Merge

* Lint

* Fix console.warn failing mock by replacing with alerts mock instead

* Lint

---------

Co-authored-by: Adria Navarro <adria@revityapp.com>
2023-04-04 15:08:46 +01:00
Rory Powell c57e69d082 Chore: Update livenessprobe timeout, add readinessprobe (#10139)
* Chore: Update livenessprobe timeout, add readinessprobe

* Remove liveness and readiness probes from values

* Add clarifying comment to existing liveness and readiness probes

* U[date failureThreshold on readiness probe to be 3
2023-03-28 16:07:03 +01:00
Rory Powell e116941750 Rotatable secrets (#9982)
* Rotatable secrets

* Set new api encryption key var

* Lint

* Use fallback keys instead of array

* Point api encryption key to dedicated value

* Add API_ENCRYPTION_KEY to cli

* Lint + add api encryption key to env files
2023-03-13 15:02:59 +00:00
Martin McKeaveney d8fbdeb6f8 set couchDB chart version to 3.1.1 2023-02-23 16:20:44 +00:00
Dean 0eed617866 Updated default feature flags to include onboarding by default. Added tenant overrides to allow exclusion from global features 2023-02-01 14:12:43 +00:00
Jonny McCullagh 489238d625 adjust service annotation locations (#9296)
* adjust service annotation locations

* adjust service annotation locations
2023-01-10 11:01:12 +00:00
Jonny McCullagh a2334ddb97 more generic annotations & pod specific 2023-01-09 12:04:21 +00:00
Rory Powell b635614f77 Allow proxy upstream URLs to be configured at runtime (#7413)
* allow proxy upstream urls to be configured at runtime

* make dynamic upstream urls in proxy the default behaviour

* reorder env directives

* Use appVersion for proxy image

* Update couch upstream for proxy

* proxy ci updates - WIP

* allowing custom resolvers in proxy service deployment

* remove generateProxyConf script for prod and remove from builds

* remove generateProxyConfig script

* removing nginx dev conf

* delete generated nginx conf

Co-authored-by: Thomas Weiß <panos@unbunt.org>
Co-authored-by: Martin McKeaveney <martinmckeaveney@gmail.com>
2022-12-20 16:28:13 +00:00
Rory Powell 786039055e File authentication using presigned URLs (#8883)
* file auth wip

* Private plugin bucket wip

* Add etag to logo request, fix circular dependency

* Resolve cyclic dependency

* Ensure browser doesn't cache custom component

* Global file fixes

* File fixes / remove permaUrl

* Add ctx local storage

* Enable presigned url to work from any host

* Test fix

* Self hosting w/ S3 + other fixes

* Fix for serving dev app in multi tenant

* Fix backup restore and import attachment url processing, never store attachment urls

* Test fixes

* Unit tests WIP

* Replace file path with base64 encoded private key

* Multi tenancy tests for files

* Environment files fixes

* Post-merge build and test fixes

* Add debug conditional to all jest logging and revert/fix prod minio proxy_pass

* Re-add default '/' minio route :(

* Rename iconFile -> iconFileName

* Add cloudfront vars to k8s templates

* Remove public bucket policy

* Remove duplicated test
2022-12-15 11:35:22 +00:00
Martin McKeaveney bfab6fc335 merge 2022-12-09 13:35:18 +00:00
Martin McKeaveney 5ef9a9a254 enable support for company proxy 2022-12-06 14:00:56 +00:00
Jonny McCullagh a33ae242d0 Merge pull request #8891 from Budibase/jonny/helm-logging-annotation
add optional annotations to pods for logging format
2022-12-06 10:46:10 +00:00
Jonny 487d003ae2 add optional annotations to pods for logging format 2022-12-01 14:39:35 +00:00
Jonny 92667949ff Add env var for tls-reject-unauthorised to helm chart 2022-12-01 14:09:40 +00:00
Rory Powell cf9e791cc0 Add CDN_URL to k8s templates 2022-11-07 15:27:13 +00:00
Rory Powell 1a2bc37945 Add CDN_URL to k8s templates 2022-11-07 12:33:21 +00:00
Rory Powell aebc51299e Enable feature flags selfhost 2022-09-22 14:41:41 +01:00
Thomas Weiß 3e2b98c979 remove unused value from chart defaults 2022-09-05 15:34:40 +02:00
Thomas Weiß de62475d93 allow specifying resources on couchdb-backup deployment 2022-09-05 15:34:39 +02:00
Thomas Weiß 1057eab83a allow specifying resources on minio, redis deployments 2022-09-05 15:34:39 +02:00
Thomas Weiß f37c8e0b88 allow specifying resources on app, worker, proxy deployments 2022-09-05 15:34:35 +02:00
Rory Powell 368b48719c Conditionally enable elastic apm 2022-08-30 10:59:27 +01:00
Rory Powell 97cafac46c Add support for NODE_DEBUG to app-service in kubernetes 2022-08-19 15:21:53 +01:00
Rory Powell d36ff097ee Update posthog token 2022-08-08 14:03:04 +01:00
Peter Clement fadd4292ad update handling of max iterations 2022-06-23 16:08:25 +01:00
Rory Powell 23a04fc5de Update k8s flags from booleans to integers 2022-06-16 08:19:29 +01:00
Rory Powell 0094c83216 Environment config 2022-06-06 15:27:29 +01:00
Rory Powell cf2361a11d Update CouchDB in kubernetes to be 3.2.1 2022-04-29 11:32:12 +01:00
Martin McKeaveney 70fce03c09 updating helm chart for storage classes 2022-04-27 12:42:57 +01:00
mike12345567 2441f42c54 Merge branch 'develop' of github.com:Budibase/budibase into fix/develop-merge 2022-04-26 16:31:17 +01:00
Abdullah Talakey 9ccc7525a5 add storageClass to redis and objectStore PVCs 2022-04-26 14:21:41 +03:00
Martin McKeaveney 9ca4dacbaa merge with master 2022-04-26 10:21:45 +01:00
Martin McKeaveney f1d7220df7 adding larger limits to the NGINX ingress contoller 2022-04-25 14:40:22 +01:00
Rory Powell d2a4e0a934 Merge branch 'develop' into feature/licensing 2022-04-20 14:59:36 +01:00
Martin McKeaveney ebf39d7b93 Merge pull request #5424 from dougwettlaufer/apply-affinities-and-tolerations
Apply affinities and tolerations in the helm chart
2022-04-20 08:40:51 +01:00
Peter Clement 1000ef35e1 Improve handling of loop handlebars string replacement 2022-04-18 09:22:23 +01:00
dougwettlaufer bb93dcfeae Apply affinities and tolerations in the helm chart 2022-04-14 10:22:22 -05:00
Peter Clement 43b4dd8737 add environment variable 2022-04-13 10:23:40 +01:00
Rory Powell 0a4b1eb552 Tests complete + backwards compatibility for deployment 2022-03-22 00:23:22 +00:00
Martin McKeaveney 32e92bff98 fix k8s by adding google config to values 2022-02-20 22:20:52 +01:00
Martin McKeaveney a85f667dbe templatize nginx configuration into one prod configuration and add NPM scripts to manage 2022-02-16 14:12:53 +01:00
Rory Powell 76075e4295 Add HTTP_MIGRATIONS to kubernetes environment 2022-01-27 10:53:26 +00:00
Rory Powell 8fc60af820 Calculate total rows in migration, centralise quota enabled logic and tidy to use env vars only 2022-01-17 12:44:53 +00:00
Martin McKeaveney 1488d466b3 remove traefik 2021-12-21 14:13:19 +00:00
Martin McKeaveney 7334fc6748 automate helm deployment with CI 2021-12-09 11:05:43 +00:00