Commit Graph

19481 Commits

Author SHA1 Message Date
Eric Peterson e4adc768a5 Update architecture diagram.
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 12157e8f5b Fix up tests after rebase.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-11-28 13:16:04 -07:00
Eric Peterson 6e618bef06 Fix up types/tests/report.
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 e99606d3e6 Add all generated files to techdocs_metadata.json
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 1bada775a9 Changesets for affected packages.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-11-28 13:16:04 -07:00
Eric Peterson d48aa5ca1c Update create-app so that cache manager is passed through to router.
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 0a5278b92a Update Backstage.io docs with config/recs
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 5fe0c2ce78 Wire up example backend to use in-memory cache.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-11-28 13:16:04 -07:00
Eric Peterson 8b438c7717 Update all Publishers so that they resolve a list of objects on successful publish.
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
Eric Peterson d5699813f7 Proposed architecture.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-11-28 13:13:30 -07:00
Patrik Oldsberg 32eb6303c5 Merge pull request #8266 from backstage/rugvip/packageindex
scripts/api-extractor: fix package index descriptions
2021-11-28 20:54:31 +01:00
Patrik Oldsberg 1505a8cd70 scripts/api-extractor: fix package index descriptions
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-28 13:29:19 +01:00
Patrik Oldsberg 63f3b46b86 Merge pull request #8160 from adrianbarwicki/patch-1
feat: expose catalog lib in `plugin-auth-backend`
2021-11-26 16:57:20 +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
Johan Haals c8b698aac1 Merge pull request #8262 from backstage/jhaals/stalework
stale: Increase operations, remove debug logging
2021-11-26 14:34:05 +01:00
Ben Lambert 017034d0d1 Merge pull request #8261 from backstage/jhaals/codeowners
Add more code owners
2021-11-26 14:29:33 +01:00
Johan Haals 3f71f245f2 stale: Increase operations, remove debug logging
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-11-26 14:23:12 +01:00
Johan Haals c90732b13e Merge pull request #8259 from backstage/jhaals/stale
Replace stalebot with stale workflow
2021-11-26 13:59:34 +01:00
Johan Haals 8bf026b16d Add more code owners
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-11-26 13:57:19 +01:00
MT Lewis f5c43945eb create-app: update backend-to-backend auth comment in app-config template
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2021-11-26 12:35:09 +00:00
MT Lewis e65d8b5174 docs: update backend-to-backend auth docs to reflect new TokenManager api
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2021-11-26 12:31:10 +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 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
MT Lewis e5b4256e70 catalog-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
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
Johan Haals 139f9b3f36 Replace stalebot with stale workflow
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-11-26 10:25:32 +01: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
Patrik Oldsberg 5f01829180 Merge pull request #8253 from backstage/dependabot/npm_and_yarn/microsite/prettier-2.5.0
build(deps-dev): bump prettier from 2.4.1 to 2.5.0 in /microsite
2021-11-26 09:37:48 +01:00
Johan Haals dea7b2fda1 Merge pull request #8255 from backstage/dependabot/npm_and_yarn/immer-9.0.7
build(deps): bump immer from 9.0.6 to 9.0.7
2021-11-26 08:24:45 +01:00
Johan Haals acfc2c49b5 Merge pull request #8246 from backstage/mob/stale
Add stale workflow
2021-11-26 08:23:23 +01:00
dependabot[bot] 5f2c584d6e build(deps): bump immer from 9.0.6 to 9.0.7
Bumps [immer](https://github.com/immerjs/immer) from 9.0.6 to 9.0.7.
- [Release notes](https://github.com/immerjs/immer/releases)
- [Commits](https://github.com/immerjs/immer/compare/v9.0.6...v9.0.7)

---
updated-dependencies:
- dependency-name: immer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-26 04:13:41 +00:00
dependabot[bot] 6474ddd47d build(deps-dev): bump prettier from 2.4.1 to 2.5.0 in /microsite
Bumps [prettier](https://github.com/prettier/prettier) from 2.4.1 to 2.5.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.4.1...2.5.0)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-26 04:07:07 +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
Patrik Oldsberg dc57a35ad5 Merge pull request #8249 from backstage/rugvip/korvspad
core-plugin-api: bit clearer deprecation warning for createRouteRef
2021-11-25 19:43:31 +01:00