Fredrik Adelöw
e45e6e7ca9
Merge pull request #7156 from backstage/mob/redact-secrets-from-logs
...
backend: redact secret configs from logs
2021-10-28 13:46:50 +02:00
Fredrik Adelöw
96cfa561eb
Just some random improvements in backend-common too
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-10-27 16:25:23 +02:00
blam
d465f2e0af
chore: bump the msw package and remove it from test-utils as it's not even needed
...
Signed-off-by: blam <ben@blam.sh >
2021-10-26 17:13:49 +02:00
Johan Haals
f1e96dc5b1
chore/cli: Replace msw with setupRequestMockHandlers
...
Signed-off-by: Johan Haals <johan.haals@gmail.com >
2021-10-26 10:54:47 +02:00
Harry Hogg
f879e8b2b8
fix(backend): Load all schemas from monorepo packages
...
Signed-off-by: Harry Hogg <hhogg@spotify.com >
2021-10-25 16:56:10 +01:00
Harry Hogg
4b92638259
test(escapeRegExp): Just an extra test to make sure non-regexy strings don't get escaped
...
Signed-off-by: Harry Hogg <hhogg@spotify.com >
2021-10-25 16:56:10 +01:00
Harry Hogg
deaec1ee3f
fix(rootLogger): Only set a regex if there are redactions given, otherwise everything gets redacted
...
Signed-off-by: Harry Hogg <hhogg@spotify.com >
2021-10-25 16:56:10 +01:00
Harry Hogg
488e6145cb
fix(rootLogger): Renamed to setRootLoggerRedactionList and do not expose publically
...
Signed-off-by: Harry Hogg <hhogg@spotify.com >
2021-10-25 16:56:09 +01:00
Harry Hogg
a9025f70ba
fix(rootLogger): Added util for escaping a regular expression
...
Signed-off-by: Harry Hogg <hhogg@spotify.com >
2021-10-25 16:54:33 +01:00
Harry Hogg
3c10980ec5
test(rootLogger): Redaction formatting
...
Signed-off-by: Harry Hogg <hhogg@spotify.com >
2021-10-25 16:54:33 +01:00
Harry Hogg
f8a7f5723a
Removed added dependency
...
Signed-off-by: Harry Hogg <hhogg@spotify.com >
2021-10-25 16:54:33 +01:00
Harry Hogg
18d14d655e
fix(config): Subscribe to config changes instead of piggy backing off the loader watch.
...
Signed-off-by: Harry Hogg <hhogg@spotify.com >
2021-10-25 16:54:32 +01:00
Harry Hogg
12428bf338
fix(config): Use config get() and find secrets using one big RegExp instead
...
Signed-off-by: Harry Hogg <hhogg@spotify.com >
2021-10-25 16:54:31 +01:00
Harry Hogg
54decb6266
docs(api-report): Updated API documentation
...
Signed-off-by: Harry Hogg <hhogg@spotify.com >
2021-10-25 16:54:13 +01:00
Harry Hogg
94929707e9
feat(backend-common): Pass the redaction map from the backend config-loader to the logger
...
Signed-off-by: Harry Hogg <hhogg@spotify.com >
2021-10-25 16:54:11 +01:00
Harry Hogg
a2b66f2f4d
feat(logger): Added redaction filter to the rootLogger
...
Signed-off-by: Harry Hogg <hhogg@spotify.com >
2021-10-25 16:53:38 +01:00
Himanshu Mishra
3e61a4da9e
backend: add some todos for redacting secrets from logs
...
Co-authored-by: Harry Hogg <harry@hogg.io >
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net >
2021-10-25 16:53:38 +01:00
Fredrik Adelöw
56f182dde2
Remove all internal usage of the Json types
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-10-22 16:11:35 +02:00
github-actions[bot]
bf5090e59d
Version Packages
2021-10-21 13:28:13 +00:00
Patrik Oldsberg
de48939447
Merge pull request #7461 from backstage/rugvip/errors
...
[PRFC] errors: add isError, assertError and ErrorLike type
2021-10-20 13:07:49 +02:00
Crevil
be59619212
Detect GitHub rate limits in GithubUrlReader
...
Currently there is no way of knowing whether a 403 error from the
GithubUrlReader is due to bad credentials or GitHub rate limits.
This change appends the text " (rate limit exceeded)" to the thrown error to
help operators understand that this is the case.
Signed-off-by: Crevil <bjoern.soerensen@gmail.com >
2021-10-19 15:34:39 +02:00
Patrik Oldsberg
36e67d2f24
more strict error type checking in most packages and backend plugins
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-10-17 15:09:05 +02:00
Patrik Oldsberg
f25b8459cd
update tests to be runnable from the project root
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-10-10 20:00:42 +02:00
github-actions[bot]
97420439e1
Version Packages
2021-10-07 12:17:39 +00:00
Fredrik Adelöw
cac4afb95f
Merge pull request #7463 from Sarabadu/feat/accept-glob-pattern
...
[WIP]Add Glob pattern to Cors config
2021-10-07 11:19:46 +02:00
Johan Haals
b234c8c791
Merge pull request #7478 from backstage/jhaals/trimtrim
...
Replace slash stripping regexp with trimEnd
2021-10-07 09:56:40 +02:00
Johan Haals
a31afc5b62
Replace slash stripping regexp with trimEnd
...
Signed-off-by: Johan Haals <johan.haals@gmail.com >
2021-10-06 16:42:03 +02:00
Juan Pablo Garcia Ripa
a745ae2757
better name function
...
Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com >
2021-10-06 15:49:56 +02:00
Juan Pablo Garcia Ripa
8ebec84865
add test for undefined values
...
Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com >
2021-10-06 15:44:34 +02:00
Gustaf Lundh
8f969d5a56
Correct error message typo
...
Signed-off-by: Gustaf Lundh <gustaflh@axis.com >
2021-10-06 15:32:32 +02:00
Juan Pablo Garcia Ripa
d7055285de
add changeset
...
Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com >
2021-10-06 14:01:07 +02:00
Juan Pablo Garcia Ripa
10ef0ffbd7
remove micromatch dependency
...
Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com >
2021-10-06 12:36:43 +02:00
Juan Pablo Garcia Ripa
0dcdf5a006
use minimatch pattern match to validate origin
...
Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com >
2021-10-06 12:27:57 +02:00
Juan Pablo Garcia Ripa
42f91cf01e
add glob option to cors origin config
...
Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com >
2021-10-06 00:00:26 +02:00
github-actions[bot]
f67e8ddcec
Version Packages
2021-09-30 11:43:05 +00:00
Patrik Oldsberg
8bb3c0a578
backend-common: enable subscriptions for sub configs
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-09-25 13:48:54 +02:00
Oliver Sand
0c8a59e293
Fix filtering with globs in bitbucket reader
...
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com >
2021-09-23 16:09:32 +02:00
github-actions[bot]
6e5b1bda9d
Version Packages
2021-09-23 10:01:17 +00:00
Patrik Oldsberg
2f9065d8fd
packages,plugins: bump mock-fs to 5.1.0
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-09-17 23:14:20 +02:00
Tim Hansen
febddedcb2
security: bump lodash to 4.17.21
...
Signed-off-by: Tim Hansen <timbonicus@gmail.com >
2021-09-16 16:06:56 -06:00
Fredrik Adelöw
f1923cbb42
some more master build fixes
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-09-16 14:36:48 +02:00
github-actions[bot]
fff5c48429
Version Packages
2021-09-16 11:41:51 +00:00
Fredrik Adelöw
44b87836d8
fix windows master build
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-09-16 11:56:58 +02:00
Fredrik Adelöw
02058d69a1
Merge pull request #6882 from splunk/seant-splunk/awsS3_readTree_processor
...
Add readTree() to AwsS3UrlReader, ReadableArrayResponse type, and AwsS3ReadTreeProcessor
2021-09-16 10:11:15 +02:00
Patrik Oldsberg
8142a8ecb2
packages,plugins: add package documentation
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-09-14 18:47:53 +02:00
Sean Tan
ff2ac13682
Merge branch 'master' of github.com:backstage/backstage into seant-splunk/awsS3_readTree_processor
...
Signed-off-by: Sean Tan <seant@splunk.com >
2021-09-13 13:20:00 -07:00
Ben Lambert
43503ee9ce
Merge pull request #7134 from backstage/rugvip/azure
...
integrations,backend-common: Fix azure URL parsing and readTree/search
2021-09-10 13:53:35 +02:00
Johan Haals
b78d4b03bd
Merge pull request #7106 from goober/feature/upgrade-git-url-parse
...
chore(deps) bump git-url-parse from 11.4.4 to 11.6.0
2021-09-10 13:25:17 +02:00
Patrik Oldsberg
8cfeb5fe08
backend-common: fix azure readTree subpath handling
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-09-10 12:08:08 +02:00
github-actions[bot]
866ec85375
Version Packages
2021-09-09 14:47:05 +00:00