5.4 KiB
@backstage/create-app
0.2.1
Patch Changes
c56e28375: Fix missing api-docs plugin registration in app template
0.2.0
Minor Changes
-
6d29605db: Change the default backend plugin mount point to /api -
5249594c5: Add service discovery interface and implement for single host deploymentsFixes #1847, #2596
Went with an interface similar to the frontend DiscoveryApi, since it's dead simple but still provides a lot of flexibility in the implementation.
Also ended up with two different methods, one for internal endpoint discovery and one for external. The two use-cases are explained a bit more in the docs, but basically it's service-to-service vs callback URLs.
This did get me thinking about uniqueness and that we're heading towards a global namespace for backend plugin IDs. That's probably fine, but if we're happy with that we should leverage it a bit more to simplify the backend setup. For example we'd have each plugin provide its own ID and not manually mount on paths in the backend.
Draft until we're happy with the implementation, then I can add more docs and changelog entry. Also didn't go on a thorough hunt for places where discovery can be used, but I don't think there are many since it's been pretty awkward to do service-to-service communication.
-
56e4eb589: Make CSP configurable to fix app-backend served app not being able to fetchSee discussion here on discord
-
d7873e1aa: Default to using internal scope for new plugins -
6f447b3fc: Remove identity-backendNot used, and we're heading down the route of identities in the catalog
-
61db1ddc6: Allow node v14 and add to master build matrix- Upgrade sqlite3@^5.0.0 in @backstage/plugin-catalog-backend
- Add Node 14 to engines in @backstage/create-app
-
a768a07fb: Add the ability to import users from GitHub Organization into the catalog.The token needs to have the scopes
user:email,read:user, andread:org. -
f00ca3cb8: Auto-create plugin databasesRelates to #1598.
This creates databases for plugins before handing off control to plugins.
The list of plugins currently need to be hard-coded depending on the installed plugins. A later PR will properly refactor the code to provide a factory pattern where plugins specify what they need, and Knex instances will be provided based on the input.
-
6d97d2d6f: The InfoCard variant'height100'is deprecated. Use variant'gridItem'instead.When the InfoCard is displayed as a grid item within a grid, you may want items to have the same height for all items. Set to the
'gridItem'variant to display the InfoCard with full height suitable for Grid:<InfoCard variant="gridItem">...</InfoCard>Changed the InfoCards in '@backstage/plugin-github-actions', '@backstage/plugin-jenkins', '@backstage/plugin-lighthouse' to pass an optional variant to the corresponding card of the plugin.
As a result the overview content of the EntityPage shows cards with full height suitable for Grid.
-
7aff112af: The default mount point for backend plugins have been changed to /api. These changes are done in the backend package itself, so it is recommended that you sync up existing backend packages with this new pattern.
Patch Changes
-
e67d49bf5: Sync scaffolded backend with example -
961414d55: Remove discovery api override -
440a17b39: Bump @backstage/catalog-backend and pass the now required UrlReader interface to the plugin -
8c2b76e45: BREAKING CHANGEThe existing loading of additional config files like
app-config.development.yamlusing APP_ENV or NODE_ENV has been removed. Instead, the CLI and backend process now accept one or more--configflags to load config files.Without passing any flags,
app-config.yamland, if it exists,app-config.local.yamlwill be loaded. If passing any--config <path>flags, only those files will be loaded, NOT the defaultapp-config.yamlone.The old behaviour of for example
APP_ENV=developmentcan be replicated using the following flags:--config ../../app-config.yaml --config ../../app-config.development.yaml -
5a920c6e4: Updated naming of environment variables. New pattern [NAME]_TOKEN for Github, Gitlab, Azure & Github enterprise access tokens.Detail:
- Previously we have to export same token for both, catalog & scaffolder
export GITHUB_ACCESS_TOKEN=foo export GITHUB_PRIVATE_TOKEN=foowith latest changes, only single export is sufficient.
export GITHUB_TOKEN=foo export GITLAB_TOKEN=foo export GHE_TOKEN=foo export AZURE_TOKEN=foolist:
Old name New name GITHUB_ACCESS_TOKEN GITHUB_TOKEN GITHUB_PRIVATE_TOKEN GITHUB_TOKEN GITLAB_ACCESS_TOKEN GITLAB_TOKEN GITLAB_PRIVATE_TOKEN GITLAB_TOKEN AZURE_PRIVATE_TOKEN AZURE_TOKEN GHE_PRIVATE_TOKEN GHE_TOKEN -
67d76b419: Fix for configured templates using 'url' locations even though it's not supported yet -
7bbeb049f: Change loadBackendConfig to return the config directly