Johan Haals
6ff2055519
Merge pull request #8383 from radoslaw-wielonski-nc/feat/add-custom-error-handler
...
Feat/add custom error handler
2021-12-08 16:48:22 +01:00
Radoslaw Wielonski
aec2c96c88
docs: update documentation of disableDefaultErrorHandler method
...
Signed-off-by: Radoslaw Wielonski <radoslaw.wielonski@nordcloud.com >
2021-12-08 15:13:37 +01:00
Radoslaw Wielonski
0105e3cd64
docs: update documentation of setErrorHandler method
...
Signed-off-by: Radoslaw Wielonski <radoslaw.wielonski@nordcloud.com >
2021-12-08 15:11:07 +01:00
radoslaw-wielonski-nc
d2ad94df97
Update packages/backend-common/src/service/types.ts
...
Co-authored-by: Johan Haals <johan.haals@gmail.com >
Signed-off-by: Radoslaw Wielonski <radoslaw.wielonski@nordcloud.com >
2021-12-08 15:08:40 +01:00
Radoslaw Wielonski
a07e0f5f06
docs: update documentation of setErrorHandler method
...
Signed-off-by: Radoslaw Wielonski <radoslaw.wielonski@nordcloud.com >
2021-12-08 13:15:25 +01:00
Fredrik Adelöw
986a5d869e
Merge pull request #8405 from backstage/freben/nounpack
...
Do not unpack arguments directly on exported items 🧹
2021-12-08 13:15:13 +01:00
Fredrik Adelöw
dcd1a0c3f4
Do not unpack arguments directly on exported items
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-12-07 19:42:10 +01:00
Johan Haals
c869f6dbbe
Merge pull request #8303 from backstage/eide/run-migrations
...
[backend-common]: Make it possible to skip database migrations
2021-12-07 15:09:32 +01:00
Marcus Eide
dac55f3cc7
Make optional
...
Signed-off-by: Marcus Eide <eide@spotify.com >
2021-12-07 12:44:16 +01:00
Radoslaw Wielonski
6026ebb680
refactor: use prototype to access private properties and avoid // @ts-ignore
...
Signed-off-by: Radoslaw Wielonski <radoslaw.wielonski@nordcloud.com >
2021-12-07 12:24:14 +01:00
Radoslaw Wielonski
06d80ac7a6
refactor: remove ts-ignore comments from tests
...
Signed-off-by: Radoslaw Wielonski <radoslaw.wielonski@nordcloud.com >
2021-12-07 12:02:58 +01:00
Radoslaw Wielonski
af77b33895
docs: update api-report.md with error handler changes
...
Signed-off-by: Radoslaw Wielonski <radoslaw.wielonski@nordcloud.com >
2021-12-07 11:36:01 +01:00
Radoslaw Wielonski
5a59f5507e
feat: add flag for default error handler
...
Signed-off-by: Radoslaw Wielonski <radoslaw.wielonski@nordcloud.com >
2021-12-07 11:35:08 +01:00
Marcus Eide
5c1840c16e
Rename to DatabaseManagerOptions and export
...
Signed-off-by: Marcus Eide <eide@spotify.com >
2021-12-07 11:06:59 +01:00
Radoslaw Wielonski
f0064d4ee3
fix: fix tests for custom error handler
...
Signed-off-by: Radoslaw Wielonski <radoslaw.wielonski@nordcloud.com >
2021-12-06 15:40:02 +01:00
Radoslaw Wielonski
ad8ed6f91b
feat: add ability to set custom errorHandler
...
Signed-off-by: Radoslaw Wielonski <radoslaw.wielonski@nordcloud.com >
2021-12-06 15:29:11 +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
Fredrik Adelöw
6cecfbba73
final tweaks
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-12-02 19:53:44 +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
Marcus Eide
259922bfb2
Update api-reports
...
Signed-off-by: Marcus Eide <eide@spotify.com >
2021-12-02 14:30:49 +01:00
Marcus Eide
7b61f2c3b6
Make migrations object required
...
Signed-off-by: Marcus Eide <eide@spotify.com >
2021-12-02 14:19:02 +01:00
github-actions[bot]
29f2606ed9
Version Packages
2021-12-02 12:35:24 +00:00
Marcus Eide
70c46a708b
Add options with migrations category
...
Signed-off-by: Marcus Eide <eide@spotify.com >
2021-12-02 13:05:31 +01:00
Fredrik Adelöw
54989b671d
Fix a potential crash in the log redaction code
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-12-02 10:10:34 +01:00
Fredrik Adelöw
6b500622d5
remove more cross-fetch usage in backends
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-12-01 16:51:05 +01:00
Marcus Eide
2f45b29875
Change runMigrations to only accept a boolean
...
Signed-off-by: Marcus Eide <eide@spotify.com >
2021-12-01 16:21:40 +01:00
Marcus Eide
5cb156ef3b
Add tests for runMigrations argument when creating a database manager
...
Signed-off-by: Marcus Eide <eide@spotify.com >
2021-12-01 14:19:21 +01:00
Marcus Eide
86e1fbde1d
Add runMigrations argument to DatabaseManager
...
Signed-off-by: Marcus Eide <eide@spotify.com >
2021-12-01 14:17:49 +01:00
MT Lewis
456bcce6ca
Merge pull request #7943 from backstage/natasha/b2b-auth
...
Support backend to backend authentication
2021-11-26 15:31:52 +00:00
MT Lewis
a8eeaa13b4
backend-common: refactor away namespace usage in ServerTokenManager
...
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com >
2021-11-26 13:38:32 +00:00
MT Lewis
1cad4e54ca
backend-common: additional api-report comments and tags
...
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com >
2021-11-26 12:24:48 +00:00
MT Lewis
73bff921fd
backend-common: update api-report
...
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com >
2021-11-26 12:16:38 +00:00
MT Lewis
54eaeddaf1
backend-common: move NoopTokenManager into ServerTokenManager namespace
...
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com >
2021-11-26 12:16:38 +00:00
MT Lewis
10d0109d2e
backend-common: extract NoopTokenManager from ServerTokenManager
...
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com >
2021-11-26 12:01:11 +00:00
MT Lewis
5510cee039
backend-common: stop accepting self-reported pluginId in ServerTokenManager
...
Until we have a solution for assigning plugin/backend identities in a
way that's not open to impersonation, we can't build on top of this
information, so it's better to leave it out for now.
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com >
2021-11-26 10:23:57 +00:00
MT Lewis
4e6b2319a2
backend-common: include self-reported pluginId in backend token
...
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com >
2021-11-25 18:58:58 +00: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
github-actions[bot]
ef34f5de7b
Version Packages
2021-11-25 12:40:52 +00:00
Mike Lewis
40ea710c14
backend-common: add api doc comments
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-23 18:22:53 +00:00
Mike Lewis
4b6de2f872
backend-common: remove 'Server' from TokenManager method names
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-23 18:12:28 +00:00
Mike Lewis
8a001f8202
backend-common: TokenManager throws for invalid tokens rather than returning boolean
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-23 17:55:47 +00:00
Mike Lewis
f38dff4085
backend-common: tests validating interop of multiple token managers
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-23 14:58:48 +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
42b01ee725
backend-common: import ConfigReader from @backstage/config
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-23 13:57:38 +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
Mike Lewis
ef9dfd3440
backend-common: leave ConfigReader to throw errors when config is missing in ServerTokenManager
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-23 13:54:04 +00:00
Mike Lewis
14a6c46dff
Merge remote-tracking branch 'origin/master' into natasha/b2b-auth
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-22 18:22:57 +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
640ba82ca6
Update api reports
...
Signed-off-by: Nataliya Issayeva <nissayeva@users.noreply.github.com >
2021-11-18 07:57:53 -08:00