Commit Graph

53 Commits

Author SHA1 Message Date
Fredrik Adelöw 7fb7a79dce add a config declaration for workingDirectory
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2024-02-05 13:11:46 +01:00
Phil Kuang 7f04128bbc feat(cache): allow a defaultTTL to be set through the app config
Signed-off-by: Phil Kuang <pkuang@factset.com>
2023-11-14 14:26:56 -05:00
Patrik Oldsberg 74491c9602 backend-common: move HostDiscovery to backend-app-api
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-03 11:01:03 +02:00
Patrik Oldsberg 8f7b618a49 removed usage of Partial in configuration schemas
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-07-28 16:15:08 +02:00
Andre Wanlin de8bb7f92f Corrections based on feedback
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
2023-05-29 10:01:10 -05:00
Andre Wanlin 447270a7d9 Simplified based on feedback
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
2023-05-29 07:25:01 -05:00
Andre Wanlin 4ef91ab467 Added PG object details
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
2023-05-24 12:22:44 -05:00
Jack Palmer cc19abd08b refactor: Use {{pluginId}} pattern and update docs
Signed-off-by: Jack Palmer <jackpalmer@spotify.com>
2023-03-30 10:08:27 +01:00
Jack Palmer 960c1cf13d refactor: Rework config to be driven by target baseUrls
Signed-off-by: Jack Palmer <jackpalmer@spotify.com>
2023-03-29 21:47:47 +01:00
Jack Palmer 5e01b931ee chore: Update config types
Signed-off-by: Jack Palmer <jackpalmer@spotify.com>
2023-03-29 13:44:50 +01:00
Joep Peeters c8bdcdccb9 rename: setRole -> role
Signed-off-by: Joep Peeters <joep.peeters@nedap.com>
2023-03-06 09:27:49 +01:00
Joep Peeters ad0f2169d6 extend definition with setOwner
Signed-off-by: Joep Peeters <joep.peeters@nedap.com>
2023-02-17 14:51:33 +01:00
Fredrik Adelöw f9f512559b fix the secret marker in database config
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-03-17 15:30:47 +01:00
Fredrik Adelöw efc73db10c switch us over to better-sqlite3
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-03-11 15:37:50 +01:00
Phil Kuang 9a0510144f refactor(redis): require protocol in connection string
Signed-off-by: Phil Kuang <pkuang@factset.com>
2022-03-01 18:21:32 -05:00
Fredrik Adelöw 086b1b1694 Merge pull request #9739 from magnusp/cachemanager-redis-client
backend-common: add Redis backed cache store
2022-02-23 15:43:32 +01:00
Magnus Persson 7d12e4cf32 backend-common: add Redis backed cache store
Signed-off-by: Magnus Persson <magnus.persson@fortnox.se>
2022-02-22 22:29:28 +01:00
Mike Lewis b2f8bb99d3 backend-common: make configuration objects optional in config schema
The previous schema meant that if any other plugin introduced something
under backend.auth, the keys property would be mandatory, which isn't
correct. This commit relaxes the requirement so that backend.auth.keys
is always optional, even if backend.auth is configured.

Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2022-02-21 18:30:00 +00:00
Patrik Oldsberg de9d7eba63 backend-common: fix config schema using address rather than host
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-01-25 20:40:43 +01:00
Fredrik Adelöw 8c84e4ef1f add test
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-12-02 21:08:39 +01:00
Andrew Shirley 6298de32dd Add knexConfig sections to the config
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
2021-12-02 19:43:44 +01:00
MT Lewis 189f7f8a72 backend-common: allow for multiple signing keys in ServerTokenManager
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2021-11-25 18:42:07 +00:00
MT Lewis 51608d2021 backend-common: bits->bytes in config schema comment
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2021-11-25 18:16:54 +00:00
Mike Lewis 8cb1c4d17c backend-common: rename config block from authorization to auth
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-23 14:41:33 +00:00
Mike Lewis db1befcf39 backend-common: make secret required if authorization config block is provided
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-23 13:56:07 +00:00
Nataliya Issayeva 0f5744a5a2 Mark auth secret as secret
Signed-off-by: Nataliya Issayeva <nissayeva@users.noreply.github.com>
2021-11-18 07:57:53 -08:00
Nataliya Issayeva 83aa387b62 Default to noop tokenManager and no backend secret
Signed-off-by: Nataliya Issayeva <nissayeva@users.noreply.github.com>
2021-11-18 07:57:53 -08:00
Fredrik Adelöw 0ebc659c17 Merge pull request #7822 from bomkamp/add-global-pg-plugin-schema-flag
Adding config prop `usePluginSchemas` to allow plugins using the `pg`…
2021-11-18 11:23:21 +01:00
Greg Bomkamp 7715cadf2d Update config option from usePluginSchemas to pluginDivisionMode, Clean up Var names for clarify, fix tests
Signed-off-by: Greg Bomkamp <Gregory.Bomkamp@libertymutual.com>
2021-11-11 10:37:27 -05:00
Gabriele Mambrini 0514f55ff1 Update config schema
Signed-off-by: Gabriele Mambrini <gabriele.mambrini@jimdo.com>
2021-11-08 17:56:07 +01:00
Greg Bomkamp 7ad9a07b27 Adding config prop usePluginSchemas to allow plugins using the pg client to create their own management schemas in the db. This allows pg client plugins to work in separate schemas in the same db.
Signed-off-by: Greg Bomkamp <Gregory.Bomkamp@libertymutual.com>
2021-10-28 10:43:22 -04:00
Phil Kuang 5f6f2fd96f feat(db-config): support a ensureExists config option
Signed-off-by: Phil Kuang <pkuang@factset.com>
2021-07-08 17:53:19 -04:00
Fredrik Adelöw a88073c29a Update copyright headers
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-06-18 20:26:42 +02:00
Minn Soe 5a3ce34072 refactor: migrate from deprecated database manager
Changes:
- Swaps out `SingleConnectionDatabaseManager` to `DatabaseManager`
  across the repo.
- Updates `backend-test-utils` to generate test plugin names prefixed
  with db to satisfy plugin naming constraint, e.g. 0 becomes db0.

Signed-off-by: Minn Soe <contributions@minn.io>
2021-06-10 11:14:40 +01:00
Minn Soe 2976f3bae3 refactor: rename and deprecate database manager
Changes:
- Deprecates SingleConnectionManager and aliases to DatabaseManager.
- Simplifies database config typing in `config.d.ts`.
- Drops implementation specific assert in SingleConnectionManager test.
- Move database prefix reference and drop static property for default value.

Signed-off-by: Minn Soe <contributions@minn.io>
2021-06-10 11:14:40 +01:00
Minn Soe 772dbdb511 feat: add database manager with per plugin config
This commit introduces:
- a new backwards compatible database manager which allows the end-user
  to set global and per plugin database configuration.
- an early iteration of a database connector interface.
- provides helper functions for each of the database connectors to
  meet the new interface.

Signed-off-by: Minn Soe <contributions@minn.io>
2021-06-10 11:14:40 +01:00
Eric Peterson d6936dcbde Swap out cache-manager for Keyv implementation.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-09 17:11:04 +02:00
Eric Peterson 93ff8275dd WIP store-agnostic cache manager.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-09 15:24:40 +02:00
Oliver Sand b42531cfed Support configuration of file storage for SQLite databases
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-04-13 17:48:21 +02:00
Fredrik Adelöw c2450d458f integration: take over the config 2021-01-20 13:50:06 +01:00
Patrik Oldsberg 4211198c30 Merge pull request #4128 from backstage/rugvip/fetch
backend-common: lock down UrlReader to only read from allowed URLs
2021-01-18 18:53:19 +01:00
Patrik Oldsberg a283dcc43b backend-common: include port in url reader allow list check 2021-01-18 14:21:34 +01:00
Patrik Oldsberg 5345a1f983 backend-common: lock down UrlReader to only read from allowed URLs 2021-01-18 14:17:04 +01:00
Patrik Oldsberg 09a3704264 backend-common: remove deprecated HTTPS config 2020-12-30 13:52:48 +01:00
Patrik Oldsberg 751f58ff7c backend-common: replace generated cert params with a simple bool switch, and fix certificate generation 2020-12-30 12:57:29 +01:00
Patrik Oldsberg 6123682748 backend-common: allow port in config to be both a number or a string 2020-12-01 12:07:54 +01:00
Patrik Oldsberg b3d4e4e57a backend-common: move the frontend visibility of config to @backstage/integration 2020-11-26 22:28:38 +01:00
Fredrik Adelöw 3aa7efb3ff backend-common: add support for passing false as a CSP field value, to drop it from the defaults (#3437) 2020-11-25 10:51:35 +01:00
Patrik Oldsberg b47dce06fc backend-common: make integrations host and urls visibile in the frontend 2020-11-23 17:20:35 +01:00
Patrik Oldsberg 0b97a89f55 address config schema review comments 2020-11-18 11:31:19 +01:00