Commit Graph

163 Commits

Author SHA1 Message Date
Adria Navarro 1e3d0a3a49 Fix require 2024-07-04 11:14:02 +02:00
mike12345567 5d1c23373f removing init import. 2024-05-17 16:32:55 +01:00
mike12345567 d23a34687f Quick fix for the CLI - the disabling of pino logging being part of the index means it doesn't run until after TS imports - moving it to be first import/ran before all else. 2024-05-17 16:32:38 +01:00
Peter Clement a4c0328c53
REST file handling and SMTP automation block attachments (#13403)
* handle files in rest connector

* fetch presigned url and return

* further updates to handle files in rest connector

* remove unused important and fix extension bug

* wrong expiry param

* tests

* add const for temp bucket

* handle ttl on bucket

* more bucket ttl work

* split out fileresponse and xmlresponse into utils

* lint

* remove log

* fix tests

* some pr comments

* update function naming and lint

* adding back needed response for frontend

* use fsp

* handle different content-disposition and potential path traversal

* add test container for s3 / minio

* add test case for filename* and ascii filenames

* move tests into separate describe

* remove log

* up timeout

* switch to minio image instead of localstack

* use minio image instead of s3 for testing

* stream file upload instead

* use streamUpload and update signatures

* update bucketcreate return

* throw real error

* tidy up

* pro

* pro ref fix?

* pro fix

* pro fix?

* move minio test provider to backend-core

* update email builder to allow attachments

* testing for sending files via smtp

* use backend-core minio test container in server

* handle different types of url

* fix minio test provider

* test with container host

* lint

* try different hostname?

* Revert "try different hostname?"

This reverts commit cfefdb8ded.

* fix issue with fetching of signed url with test minio

* update autoamtion attachments to take filename and url

* fix tests

* pro ref

* fix parsing of url object

* pr comments and linting

* pro ref

* fix pro again

* fix pro

* account-portal

* fix null issue

* fix ref

* ref

* When sending a file attachment in email fetch it directly from our object store

* add more checks to ensure we're working with a signed url

* update test to account for direct object store read

* formatting

* fix time issues within test

* update bucket and path extraction to regex

* use const in regex

* pro

* Updating TTL handling in upload functions (#13539)

* Updating TTL handling in upload functions

* describe ttl type

* account for ttl creation in existing buckets and update types

* fix tests

* pro

* pro
2024-04-22 15:30:57 +00:00
mike12345567 a18799a139 Getting rid of previous check for docker-compose/docker compose as due to recent changes there is no alias for the docker compose command anymore to find. 2024-04-22 11:50:08 +01:00
Adria Navarro a88924a418 Remove // eslint-disable-next-line no-unused-vars 2024-04-17 12:24:41 +02:00
mike12345567 9a9fa3c716 Updating CouchDB with the Budi CLI, making sure the service is always up to date, as well as removing pull policy. 2024-02-16 10:46:36 +00:00
mike12345567 9be6d6c645 Removing CLI pkg build - this has been a problematic element of our build for a while now and it is rarely utilised - rather than continuing to maintain this, getting rid of it. 2024-01-02 17:45:19 +00:00
Adria Navarro db2c20e3ae eslint import/newline-after-import 2023-11-20 21:52:29 +01:00
Adria Navarro 92f411bf77 Prettier 2023-11-20 21:48:49 +01:00
Adria Navarro 4d27ff1dc0 eslint import/no-duplicates 2023-11-20 21:48:49 +01:00
mike12345567 5810529350 Quick fix for #11982 - check for both deprecated docker-compose and docker compose V2. 2023-10-05 23:03:34 +01:00
mike12345567 0912720f19 Quick fix for built PKG CLI version, make sure prebuilds are loaded correctly. 2023-10-02 15:43:32 +01:00
Adria Navarro 124ff40159 Fix types 2023-09-22 18:24:00 +02:00
Rory Powell 5726fa86be Update CLI PH Token 2023-08-30 08:37:29 +01:00
Michael Drury f6c992964e Fixing issue with CLI build, removing some old cjs exports that shouldn't be there. 2023-08-07 21:31:55 +01:00
mike12345567 cb1cec2774 Fixing pkg built CLI after using esbuild. 2023-08-07 20:21:36 +01:00
mike12345567 549f7e452d Minor change - needed to update the path to prebuilds for pkg built CLI versions. 2023-05-16 12:37:28 +01:00
mike12345567 f577b880ee Fix for 'TypeError: Cannot read properties of undefined (reading 'command')' error that was occurring - program wouldn't load successfully with an undefined version number. 2023-05-16 10:00:49 +01:00
mike12345567 552499b781 Re-writing the disabling of pino/logging - it seems that the pino logger is causing a variety of issues in the built CLI version - easier to offer an environment variable for backend-core which completely removes the logger. 2023-05-02 16:22:43 +01:00
mike12345567 5758120ecc Minor updates to CLI - incrementing docker-compose version as per #10222 as well as a fix for prebuilds when using pkg version. 2023-05-02 14:58:34 +01:00
Adria Navarro c47ff6ccfb Merge branch 'develop' into chore/remove_package.json_dependency 2023-04-24 18:42:55 +02:00
adrinr e5227febd8 Use version from environment 2023-04-17 14:02:50 +01:00
Michael Drury 4badd04e33 Some automation fixes and adding option to disable logging for CLI. 2023-04-10 22:33:53 +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
mike12345567 a7e34c0829 Minor fix for CLI - to preserve the MinIO image, meaning that new installations will always use the minio/minio image, whereas older installations can use the RELEASE.2022-10-24T18-35-07Z version which still supports the FS system. 2023-03-09 13:52:35 +00:00
mike12345567 158b33883b Fixing lint issue. 2023-03-03 12:08:03 +00:00
mike12345567 04ef7eeb9c Minor fixes - after removing axios altogether and adding a start script to make life easier for running from ts. 2023-03-03 10:03:33 +00:00
mike12345567 2125331b14 First pass - converting CLI to Typescript. 2023-03-02 18:21:45 +00:00
mike12345567 4d86df057b Some fixes for #8770 - the CLI was very memory intensive when working with large databases, that contained many revisions. We don't need the revisions for app exports/backups, therefore I've updated our export systems to drop the revision history as it compacts the database significantly and speeds up exports/reduces memory usage. 2023-02-06 17:54:40 +00:00
mike12345567 bfaef13768 Refactoring worker, converting all controllers/routes to Typescript and all imports of backend-core to new style. 2022-11-23 18:25:20 +00:00
mike12345567 a5d980efb1 Adding a fix for checklist being incorrect after restoring from the CLI. 2022-10-27 09:48:37 +01:00
mike12345567 6d72e51d16 Some fixes for CLI to get exporting/importing with different ports working, as well as a fix for access to minio through proxy. 2022-10-26 18:51:58 +01:00
mike12345567 e52db23142 Adding version handling to CLI, #8335 - useful to see what version of CLI currently installed. 2022-10-25 15:28:05 +01:00
rosnerdev c25f88492b Update exec.js
I had an issue where the datasource plugin wouldn't work because of node engine incompatibility, and after a quick search on google I found that --ignore-engines is the option to use for ignoring this kind of error and it worked! So I want to make this a built-in feature so there's no need for me to manually do this.
2022-10-04 12:18:04 +03:00
mike12345567 0f64f6b6fb Improvement to CLI logging output for plugins --dev command - make it more obvious what next steps are. 2022-09-30 17:13:50 +01:00
mike12345567 5b52acf169 Updating to add an option for generating admin user credentials as part of hosting, adding a dev command to create a simple, pre-watching environment using all flags. 2022-09-29 15:38:54 +01:00
mike12345567 2a2d5ca19e Fixing an issue with single image docker-compose generation. 2022-09-29 14:00:16 +01:00
mike12345567 a464aceffb Updating hosting to break up single file into lots of independent commands - this was an attempt to improve syntax. Adding in single image handling, as well as full support for watch directory. 2022-09-28 19:11:22 +01:00
Michael Drury 3bb4b3ed3a Making secret generation common. 2022-09-28 00:17:46 +01:00
Michael Drury ccac360340 Updating make dotenv file in the CLI to be a bit cleaner/easier to manipulate than a magic string. 2022-09-28 00:16:04 +01:00
Michael Drury b66df050dc Adding in single compose configuration to CLI. 2022-09-28 00:04:26 +01:00
mike12345567 694424d0b2 Adding ability to extend existing docker-compose file to include volumes for watching plugins. 2022-09-27 19:39:17 +01:00
mike12345567 46c1590c83 Adding types for plugin events, specifically for plugin init, import and deletion, this is across the CLI and the server. 2022-09-14 17:35:46 +01:00
mike12345567 e469ee6fe8 Adding better controls for .git checking. 2022-09-14 11:11:20 +01:00
mike12345567 d67dcd78a6 Fixing a minor issue with plugin name not being passed through in CLI function. 2022-09-14 11:04:37 +01:00
mike12345567 589d1442da Fixes from PR comments. 2022-09-14 10:58:01 +01:00
mike12345567 4621f2d830 Defaulting behaviour for empty git repos. 2022-09-13 18:28:03 +01:00
mike12345567 95f7bbd05b Adding an option to disable top level parent directory creation during CLI plugin init incase using this for git repo creation. 2022-09-13 18:22:15 +01:00
mike12345567 5c5e1b10b4 Fixing CLI build - prebuilds required for hashing can be disabled via environment variable. 2022-09-13 18:00:10 +01:00