Commit Graph

182 Commits

Author SHA1 Message Date
blam 6c55d38348 v0.1.1-alpha.23 2020-09-23 16:40:49 +02:00
Fredrik Adelöw e9b1c931b8 chore(scaffolder-backend): typo in visibility 2020-09-23 07:58:10 +02:00
Matthew Clarke e3c99d72f1 Kubernetes plugins boilerplate (#2559)
* Kubernetes plugins boilerplate

* pr feedback; check for k8s annotation
2020-09-22 15:47:27 +01:00
blam fff010b0d1 Merge branch 'master' of github.com:spotify/backstage into mob/union-types
* 'master' of github.com:spotify/backstage:
  Update quickstart-app-auth.md
  Update changelog
  v0.1.1-alpha.22
  v0.1.1-alpha.21
  TechDocs: Use a flag to determine if we should use a local mkdocs or techdocs-container (#2503)
  feat(catalog-backend): delete log entries older than a cutoff
  fix(workflows): do not run e2e when contrib or docs change
  chore(contrib): form the basic contrib hierarchy
  fix(catalog-backend): address comments and add docs
  fix(catalog-backend): unify github and github/api, and use git-url-parse
2020-09-20 21:00:45 +02:00
Raghunandan 72235dd51e v0.1.1-alpha.22 2020-09-18 15:14:38 +02:00
Sebastian Qvarfordt f097c32b59 TechDocs: Use a flag to determine if we should use a local mkdocs or techdocs-container (#2503)
* Use a flag to determine wether to use techdocs-container or local install of mkdocs

* Updated techdocs generator to look at app-config string instead of argument to decide how to run the generator

* Removed console log...

* Reverted scaffolder file that was accidentally committed.

* Fixed lint issues

* Added config to create-app template
2020-09-18 14:02:35 +02:00
blam 1903f6d987 Merge branch 'master' of github.com:spotify/backstage into mob/union-types
* 'master' of github.com:spotify/backstage: (22 commits)
  [microsite] Add CNCF logo (#2511)
  feat: use title for API type in table
  new tutorials (#2435)
  e2e-test: ignore unhandled errors from jsdom
  Techdocs without docker-in-docker (#2438)
  Test for docker before attempting to run a container (#2497)
  scaffolder: Fix backend fails to start
  feat: add api-docs config ref for widgets
  Mark docs template description as required
  Send component description to GitHub
  Pass props to lists and control rendering from outside wrapper
  Remove commented out code
  Remove unnecessary boolean conversion
  docs: improve navigation around ADRs
  Update default-app template
  Handle empty sections
  Change logic of FeatureFlags.toggle()
  Update sidepar
  Add featureflags components and toggle method on api
  Cleanup and breaking out into more components
  ...
2020-09-18 12:50:21 +02:00
Tim Jacomb d8d074c1b4 scaffolder: Fix backend fails to start 2020-09-17 13:48:47 +01:00
blam 46c11dd7d3 Merge branch 'master' of github.com:spotify/backstage into mob/union-types
* 'master' of github.com:spotify/backstage: (656 commits)
  Update playback-order-component.yaml (#2495)
  feat: rework Api Explorer components
  Add GitLab integration for scaffolder
  feat(catalog-backend): support GHE and other GitHub providers
  Add scaffolder config to monorepo (#2492)
  Simplify code
  prettified md
  Added PlantUML diagrams in backstage.io docs (#2413)
  chore(deps): bump nodegit from 0.26.5 to 0.27.0 (#2454)
  grammar correction
  added description header field
  added description header field
  added description header field
  added description header field
  added description header field
  Condense if to else if
  Update docs
  Reword
  Make access optional
  eslintignore: add template dirs
  ...
2020-09-17 14:15:50 +02:00
Björn Marschollek 55542797a9 Add GitLab integration for scaffolder
This adds a GitLab integration for the scaffolder backend.

We're introduceing a preparer and a publisher for GitLab so that we can
read templates from GitLab and publish them to a configured GitLab
instance. The two instances don't need to be the same. For instance,
templates could be public on gitlab.com, but the created repos will live
in a hosted GitLab somewhere else.

The publisher gets its own config object in `app-config.yaml` where the
target instance and token can be specified.

The service catalogue defines both `gitlab` and `gitlab/api` as
processors. They are both handled by the same preparer.

Closes #2372
2020-09-17 12:39:05 +02:00
Taras Mankovski 4c0c0bfd50 Add the ability to configure repository visibility via config 2020-09-15 16:29:43 -04:00
Patrik Oldsberg 3cf20cbad7 remove mock-data scripts 2020-09-12 15:27:27 +02:00
Patrik Oldsberg 9bfef247cc cli: add skeleton tarball for docker build caching 2020-09-07 15:03:39 +02:00
Patrik Oldsberg 6fa721eb97 cli: add --build option to backend:image-build 2020-09-06 20:01:20 +02:00
Patrik Oldsberg 20158f0c36 cli: forward all extra backend:build-image args to docker build 2020-09-06 12:04:26 +02:00
Julien Lind d19ec8d330 Be more explicit about how to remove auth config (#2255)
Add more details about wether you can set dummy values or remove config from app-config.yaml
2020-09-03 09:06:17 +02:00
Patrik Oldsberg 875f254827 Merge branch 'master' into new-release-31-aug-20 2020-09-02 16:17:40 +02:00
dependabot-preview[bot] 86124cc9e3 chore(deps-dev): bump @types/helmet from 0.0.47 to 0.0.48 (#2230)
Bumps [@types/helmet](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/helmet) from 0.0.47 to 0.0.48.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/helmet)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-09-02 07:49:28 +02:00
Emma Indal 3b545791ce new release 31 aug 20 2020-09-01 14:10:22 +02:00
Andrew Thauer 329b663c93 refactor: cleanup & renames to common db code 2020-08-31 19:45:16 -04:00
Patrik Oldsberg 5c0446617b Merge branch 'master' into rugvip/bapp 2020-08-31 13:19:02 +02:00
Fredrik Adelöw 6d774764cd feat(proxy-backend): more proxy config tweaks and docs 2020-08-28 14:36:13 +02:00
Patrik Oldsberg 5cb3cf7b90 backend: install app-backend 2020-08-27 07:26:32 +02:00
Raghunandan 734dcca107 Release v0.1.1-alpha.20 2020-08-26 11:33:14 +02:00
Raghunandan Balachandran 9b8024352a Merge pull request #2046 from spotify/new-release-20-aug-20
Release v0.1.1-alpha.19
2020-08-21 14:13:56 +02:00
Sebastian Qvarfordt 613c06bdd6 Techdocs: Updates preparers to make it work in actual usecases (#1957)
* feature(techdocs): JIT generation of techdocs

* Fix linting issues

* Add Techdocs tab to entity page

* Added missing dep

* Added missing dep

* Removed duplicate dep

* Better tab navigation

* Update label on entity page to say docs

* Fix lint issue

* Move building of docs from entity to a function

* feature(techdocs): JIT generation of techdocs

* Fix linting issues

* Add Techdocs tab to entity page

* Added missing dep

* Added missing dep

* Removed duplicate dep

* Better tab navigation

* Update label on entity page to say docs

* Fix lint issue

* Move building of docs from entity to a function

* attempt to add back react as a dep

* Fixed failing test

* fix(techdocs): Hopefully fixed tests

* Fixed another failing test

* Initial apiRef for techdocs storage

* Cleaned up some code in reader

* test(headertabs): add tests to HeaderTabs component

* fix(headertabs): change tab mock id

* fix(techdocs-generator): fix problem with macOS symlink to tmp folder

* fix(lint): remove unused configApiRef

* wip

* Ongoing cleanups

* Cleanups and fix tests

* Initial github preparer. Doesn't work properly yet

* Updated dir preparer to handle github managed-by-location and added github preparer

* Removed old file

* Fixed feedback and added better logging to techdocs build process

* Updated create-app template

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: Emma Indal <emmai@spotify.com>
2020-08-21 12:11:03 +02:00
Raghunandan 15e334a584 Release v0.1.1-alpha.19 2020-08-21 11:40:04 +02:00
Tim Jacomb c673826ebb Fix sqllite backend 2020-08-17 10:28:27 +01:00
blam 82bf64cd84 merge branch 'master' of github.com:spotify/backstage into mob/union-types
* 'master' of github.com:spotify/backstage: (88 commits)
  docs: update storybook url
  Separate port and host in configuration
  docs: fix broken links
  docs/verify-links: update to disallow path-absolute doc links
  microsite: mark package as private
  fix: path in gh-action
  fix: remove old link
  chore: add microsite build to gitignore
  CHANGELOG: add changes up until 52a3c6
  cli: use version in lerna.json for scaffolded plugins
  Fix heading
  Fix button description
  Fix typo in documentation
  docs/features: fix static location entires not being list of objects
  chore(deps): bump uuid from 8.1.0 to 8.3.0
  docs(cli): can't create-app with the cli anymore
  workflows: run CLI e2e tests with same scope as Frontend CI
  Update @types/swagger-ui-react
  catalog-backend: fix migration script not using uuid for ID
  This is supposed to be optional
  ...
2020-08-14 13:20:41 +02:00
Andrew Thauer 815983ae84 add shared database connection helpers 2020-08-13 22:56:47 -04:00
Fredrik Adelöw 65f3f4f95a Merge pull request #1877 from andrewthauer/rollbar-updates
Add rollbar organization links, etc.
2020-08-12 22:22:05 +02:00
Andrew Thauer aedcad72a5 feat: add rollbar links 2020-08-12 07:10:44 -04:00
Patrik Oldsberg 6bd0cac146 catalog-backend: added StaticLocationProcessor 2020-08-11 00:41:28 +02:00
blam bce8b514c8 Merge branch 'master' of github.com:spotify/backstage into mob/catalog-in-gql
* 'master' of github.com:spotify/backstage: (43 commits)
  chore(deps): bump material-table from 1.62.0 to 1.68.0 (#1841)
  chore(deps-dev): bump @types/http-errors from 1.6.3 to 1.8.0 (#1884)
  chore(deps-dev): bump @types/jquery from 3.3.38 to 3.5.1 (#1886)
  chore(deps): bump react-lazylog from 4.5.2 to 4.5.3 (#1888)
  chore(deps): bump rollup-plugin-dts from 1.4.7 to 1.4.10 (#1887)
  chore(deps-dev): bump concurrently from 5.2.0 to 5.3.0 (#1885)
  docs: added configuration docs (#1863)
  chore(deps): bump replace-in-file from 6.0.0 to 6.1.0 (#1840)
  cli: eslint.backend: disallow default winston import
  feat: add rollbar to explore plugin (#1878)
  fix: update the winston logger to use namespace fix #1874
  Add backstage.io/github-actions-id to metadata
  docs: fix link to plugin documentation (#1869)
  CHANGELOG: bump to alpha.18 + note about auth CSP fix
  update gitignore
  v0.1.1-alpha.18
  package: always bump all package versions
  fix: add migration file for entity_search column fix
  Add docs for creating a GitHub OAuth application (#1857)
  auth backend: fix CSP by setting script hash
  ...
2020-08-10 10:31:39 +02:00
Patrik Oldsberg f8c696e038 v0.1.1-alpha.18 2020-08-07 17:08:28 +02:00
blam cc80ff7d46 Merge branch 'master' of github.com:spotify/backstage into mob/catalog-in-gql
* 'master' of github.com:spotify/backstage:
  v0.1.1-alpha.17
  create-app: remove copyright headers from backend template
  create-app: update tech-docs backend wiring
  create-app: add empty list of auth providers
  cli: fix e2e package references
  Add api-catalog.yaml file (#1822)
  cli: update e2e-test to include dist versions of backend packages
  chore(deps): bump helmet from 3.23.2 to 4.0.0
  feat: add simple healthcheck to app container
  packages/cli: fix packaging of packages without deps
  config-loader,backend-common: refactor config loading to pass in path and use common util for backend
  techdocs-cli: import version from techdocs-cli directly
  create-app: use cli-common to discover paths and import version directly
  cli: use cli-common to discover paths
  packages: add cli-common
2020-08-06 10:35:13 +02:00
Patrik Oldsberg 0dd8fa2828 v0.1.1-alpha.17 2020-08-05 19:36:36 +02:00
Patrik Oldsberg 2ecd8ae8dd Merge pull request #1813 from spotify/rugvip/cli-common
cli: separate out path discovery logic that's common to CLIs, backend and config
2020-08-05 12:10:25 +02:00
blam 11de4c5f4b gotcha(gql): if you just import the type the config library doesnt work 🤷 2020-08-05 07:27:51 +02:00
Sebastian Qvarfordt 97f3f58844 Mob/techdocs end to end (#1736)
* Initial techdocs end to end heavily inspired by scaffolder

* added some tests and fixed linting

* fix(techdocs-backend): fix eslint

* fix(techdocs-backend): cleanup commented test

* Removed unused dependency

* fix(techdocs-backend): updated standalone server

* moved type dependency to devDependencies

* fix: updated dependencies and devDependencies.

* Update plugins/techdocs-backend/src/techdocs/stages/generate/types.ts

Co-authored-by: Emma Indal <emma.indahl@gmail.com>

Co-authored-by: Emma Indal <emmai@spotify.com>
Co-authored-by: ellinors <ellinors@spotify.com>
Co-authored-by: Emma Indal <emma.indahl@gmail.com>
2020-08-04 13:04:48 +02:00
Patrik Oldsberg 62222b543c config-loader,backend-common: refactor config loading to pass in path and use common util for backend 2020-08-03 21:24:44 +02:00
Patrik Oldsberg 315b981cd4 backend: add clarifying comment to COPY command in Dockerfile 2020-07-29 11:34:37 +02:00
Ivan Shmidt 3f046ed0e3 Merge branch 'master' of github.com:spotify/backstage into shmidt-i/create-app-backend 2020-07-27 14:40:57 +02:00
Ivan Shmidt e5ed8f95d1 fix(cli): e2e backend PR adjustments 2020-07-27 14:38:07 +02:00
Raghunandan Balachandran 63dbc49f3e Merge pull request #1680 from spotify/configurable-auth-providers
Read auth providers from app-config yaml
2020-07-27 13:33:40 +02:00
Patrik Oldsberg ea129d5bbd Merge pull request #1592 from andrewthauer/backend-status-checks
[Backend-Common] Add backend status check handler middleware
2020-07-27 12:53:47 +02:00
Raghunandan 60d3ecc695 Read auth providers in backend and frontend from app-config yaml 2020-07-27 09:07:25 +02:00
Andrew Thauer 2a482bd3ef add status check router 2020-07-26 16:11:38 -04:00
Andrew Thauer 88e3581ebc feat: add backend status check handler middleware
The statusCheckHandler is a simple express middleware that helps
implement healthcheck/readiness endpoints. It can provided an optional
status function that should return a promise that resolves in either
true or false. The response will be either a 200 or 503 respectively.
Any errors that occur will be forwarded to next.
2020-07-26 15:27:00 -04:00
Ben Lambert 1009c4e05d Merge branch 'master' into blam/gql 2020-07-26 03:36:48 +02:00