Commit Graph

356 Commits

Author SHA1 Message Date
github-actions[bot] b04011602b Version Packages 2022-01-13 14:23:13 +00:00
Fredrik Adelöw 5333451def Got rid of the last brace-typed and hyphen-less params etc
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-01-10 09:48:12 +01:00
github-actions[bot] 7d27a11079 Version Packages 2021-12-30 11:06:46 +00:00
Eric Peterson 26a0296341 Merge pull request #8598 from erikxiv/fix-api-auth-in-techdocs
fixes api auth bug in techdocs backend
2021-12-28 17:33:36 +01:00
github-actions[bot] 3d68c45ef7 Version Packages 2021-12-23 12:23:34 +00:00
Erik Larsson da676a49ab fixes api auth bug in techdocs backend
Signed-off-by: Erik Larsson <erik.larsson@schibsted.com>
2021-12-22 22:16:49 +01:00
Eric Peterson 8c25c3ea5b Allow TechDocs cache in recommended deployment mode.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-12-21 12:02:45 +01:00
github-actions[bot] 9068128fd8 Version Packages 2021-12-09 12:02:28 +00: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
Otto Sichert 731e9293bd Merge pull request #6335 from backstage/iameap/techdocs-cache
[TechDocs] Optional static resource caching
2021-12-06 10:38:30 +01:00
Eric Peterson ef600b3c8c Review feedback.
Signed-off-by: Eric Peterson <i.am@eric.pe>
2021-12-05 16:50:09 -06:00
github-actions[bot] 29f2606ed9 Version Packages 2021-12-02 12:35:24 +00:00
Eric Peterson 6e9e82b99d Review feedback.
Signed-off-by: Eric Peterson <i.am@eric.pe>
2021-11-28 13:40:51 -07:00
Eric Peterson e0930f578e en-US lowercase locale
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-11-28 13:16:04 -07:00
Eric Peterson ef04b09f75 Make cache readTimeout configurable.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-11-28 13:16:04 -07:00
Eric Peterson da0867f952 Account for legacy path casing in cache invalidation.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-11-28 13:16:04 -07:00
Eric Peterson 8cf4684a4e Remove cache invalidation endpoint from middleware.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-11-28 13:16:04 -07:00
Eric Peterson a3909d2c2f Invalidate stale cache entries on read for external builder config when cache is enabled.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-11-28 13:16:04 -07:00
Eric Peterson d011fd61ea Ensure DocsSynchronizer has access to cache client.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-11-28 13:16:04 -07:00
Eric Peterson 74ccd66e26 Add tests for cache middleware. Do not cache non-200 responses.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-11-28 13:16:04 -07:00
Eric Peterson a16dce0433 Tests for TechDocsCache class
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-11-28 13:16:04 -07:00
Eric Peterson 693db1da54 Review feedback.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-11-28 13:16:04 -07:00
Eric Peterson 12ce46b229 Update TechDocs Backend API Report
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-11-28 13:16:04 -07:00
Eric Peterson 790f02c898 Improve types/documentation.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-11-28 13:16:04 -07:00
Eric Peterson 0a44eb7d52 Initial implementation of TechDocs cache in backend plugin
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-11-28 13:16:03 -07:00
Eric Peterson 3e443e8e31 Express middleware for reading/writing data to cache.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-11-28 13:13:30 -07: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 87f1b59ff9 techdocs-backend: update TokenManager mock in collator test suite
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2021-11-26 12:16:38 +00:00
Fredrik Adelöw de1f77b71c Merge pull request #8233 from backstage/freben/less-cross
🧹  Align on usage of `cross-fetch` vs `node-fetch` in frontend vs backend packages
2021-11-26 10:15:50 +01:00
github-actions[bot] ef34f5de7b Version Packages 2021-11-25 12:40:52 +00:00
Fredrik Adelöw b055a6addc Align on usage of cross-fetch vs node-fetch in frontend vs backend packages
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-11-25 13:05:08 +01: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 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 640ba82ca6 Update api reports
Signed-off-by: Nataliya Issayeva <nissayeva@users.noreply.github.com>
2021-11-18 07:57:53 -08:00
Nataliya Issayeva f04f38dbcd Fix collator tests
Signed-off-by: Nataliya Issayeva <nissayeva@users.noreply.github.com>
2021-11-18 07:57:53 -08:00
Joe Porpeglia 2a320c21b4 Pass auth token from document collators
Co-authored-by: Nataliya Issayeva <nissayeva@users.noreply.github.com>
Co-authored-by: Tim Hansen <timbonicus@gmail.com>
Signed-off-by: Joe Porpeglia <josephp@spotify.com>
2021-11-18 07:55:25 -08:00
Otto Sichert b23bc7f9c3 Change default port of backend to 7007 due to MacOS Control Center update
Signed-off-by: Otto Sichert <git@ottosichert.de>
2021-11-18 16:45:57 +01:00
github-actions[bot] 99bf179ccf Version Packages 2021-11-18 11:52:08 +00:00
blam 92f87a9a16 chore: fixing dockerode
Signed-off-by: blam <ben@blam.sh>
2021-11-18 10:52:37 +01:00
blam fb4377ac53 chore: updating the bump in package.jsons too as it a security risk for the ssh2 packages
Signed-off-by: blam <ben@blam.sh>
2021-11-17 21:32:43 +01:00
Eric Peterson b0c7748ab5 Ensure sse config is optional; pass through sse from constructor.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-11-16 10:34:56 +01:00
therynamo 9e64a7ac1e pr suggestions
Signed-off-by: therynamo <theryn.groetken@gemini.com>
2021-11-15 10:56:54 -06:00
Patrik Oldsberg 4eb087ccdc techdocs-backend: release schema hotfix
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-29 11:03:53 +02:00
Andrew Thauer b45607a2ec fix: make techdocs s3 credentials optional in config schema
Signed-off-by: Andrew Thauer <athauer@wealthsimple.com>
2021-10-28 17:56:59 -04:00
github-actions[bot] d66c5f1282 Version Packages 2021-10-28 14:06:43 +00:00
Oliver Sand 106a5dc3ad Restore original casing for kind, namespace and name in DefaultTechDocsCollator
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-10-27 14:30:40 +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
github-actions[bot] bf5090e59d Version Packages 2021-10-21 13:28:13 +00:00