Commit Graph

833 Commits

Author SHA1 Message Date
blam 9d5e659df1 chore(scaffolder): added some more tests for the github preparer 2020-06-22 14:27:56 +02:00
blam a25fc0be9e chore(scaffolder): added some tests for the refactored helper 2020-06-22 14:02:22 +02:00
blam d721c5c2d2 Merge branch 'master' of github.com:spotify/backstage into blam/github-as-source
* 'master' of github.com:spotify/backstage: (52 commits)
  build(deps): bump @rollup/plugin-json from 4.0.3 to 4.1.0 (#1360)
  build(deps-dev): bump lerna from 3.22.0 to 3.22.1 (#1390)
  build(deps): bump graphql from 15.0.0 to 15.1.0 (#1391)
  core-api: switch IdentityApi id token access to async
  Adding name of signed in user to greeting message (#1387)
  Fix CircleCI plugin (#1384)
  packages/core: update to not use default exports for components
  auth-backend: clean up naming and types of TokenFactory time handling
  auth-backend: some review feedback of oidc bits
  auth-backend: remove logging from DatabaseKeyStore
  auth-backend: more docs for TokenFactory
  auth-backend: added tests for TokenFactory and fix keyDuration being ignored
  auth-backend: added tests for DatabaseKeyStore
  auth-backend: refactor identity to remove logic from storage layer
  auth-backend: document identity types
  auth-backend: refactor identity APIs for forwards compatibility
  auth-backend: update standalone setup to use service builder and HMR
  auth-backend: issue user id tokens when signing in with google or github
  auth-backend: move logger setup out from constructors and use non-reserved fields
  auth-backend: make key duration configurable
  ...
2020-06-22 13:38:02 +02:00
Patrik Oldsberg 0ddabab956 Merge pull request #1380 from spotify/rugvip/oidc
auth-backend: Add lightweight OpenID Provider discovery and token issuing
2020-06-22 11:26:20 +02:00
dependabot-preview[bot] e62cc606fb build(deps): bump graphql from 15.0.0 to 15.1.0 (#1391)
Bumps [graphql](https://github.com/graphql/graphql-js) from 15.0.0 to 15.1.0.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v15.0.0...v15.1.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-22 09:53:17 +02:00
Nikita Nek Dudnik fb3c9f4152 Merge remote-tracking branch 'origin/master' into ndudnik/filter-by-identity 2020-06-22 09:35:23 +02:00
Daniel Davis cdcb9ed2ef Adding name of signed in user to greeting message (#1387)
Co-authored-by: Daniel Davis <danieldavis@daniels-mbp.home>
2020-06-21 21:25:24 +02:00
David Tuite b48d37c022 Fix CircleCI plugin (#1384)
* Fix disappearing CircleCI plugin

The paths for the CircleCI plugin were too deeply nested causing a blank
page to render when one visited /circleci.

* Set correct inputs from CircleCI settings

Typically, a value like `tokenFromStore` would be an empty string. The
code was setting `tokenFromStore` (rather than `token`) into the state
on every keystroke.

I don't know what potential effect this change has on storing tokens
because I haven't tested that feature yet. Hopefully it still works as
intended.

* Add Vim .swp files to .gitignore

Co-authored-by: David Tuite <dtuite@gmail.com>
2020-06-21 21:10:53 +02:00
Patrik Oldsberg 180be84ba2 auth-backend: clean up naming and types of TokenFactory time handling 2020-06-21 17:00:54 +02:00
Patrik Oldsberg 3562d836fe auth-backend: some review feedback of oidc bits 2020-06-21 17:00:54 +02:00
Patrik Oldsberg 031b1d8b39 auth-backend: remove logging from DatabaseKeyStore 2020-06-21 17:00:54 +02:00
Patrik Oldsberg 20cb44ff2c auth-backend: more docs for TokenFactory 2020-06-21 17:00:54 +02:00
Patrik Oldsberg 8e05f91c29 auth-backend: added tests for TokenFactory and fix keyDuration being ignored 2020-06-21 17:00:53 +02:00
Patrik Oldsberg 5d85c188b2 auth-backend: added tests for DatabaseKeyStore 2020-06-21 17:00:53 +02:00
Patrik Oldsberg a4bbcaa002 auth-backend: refactor identity to remove logic from storage layer 2020-06-21 17:00:53 +02:00
Patrik Oldsberg a1e975b8ac auth-backend: document identity types 2020-06-21 17:00:53 +02:00
Patrik Oldsberg 48b6f9533c auth-backend: refactor identity APIs for forwards compatibility 2020-06-21 17:00:52 +02:00
Patrik Oldsberg 625f50725b auth-backend: update standalone setup to use service builder and HMR 2020-06-21 17:00:52 +02:00
Patrik Oldsberg 5bd70f9aa5 auth-backend: issue user id tokens when signing in with google or github 2020-06-21 17:00:52 +02:00
Patrik Oldsberg f2746a6eec auth-backend: move logger setup out from constructors and use non-reserved fields 2020-06-21 17:00:52 +02:00
Patrik Oldsberg c72056eb29 auth-backend: make key duration configurable 2020-06-21 17:00:51 +02:00
Patrik Oldsberg 55faf713c3 auth-backend: fix jwks response not wrapping keys in object 2020-06-21 17:00:51 +02:00
Patrik Oldsberg af0bfccbb5 auth-backend: generate kid with uuid and use P-256 2020-06-21 17:00:51 +02:00
Patrik Oldsberg b0bf34cfc9 auth-backend: use well-known route for jwks 2020-06-21 17:00:50 +02:00
Patrik Oldsberg ca9a2ddf1a auth-backend: hook up oidc router and token issuer/db 2020-06-21 17:00:50 +02:00
Patrik Oldsberg adc574ee33 auth-backend: make DatabaseKeyStore only return valid keys and remove expired ones 2020-06-21 17:00:50 +02:00
Patrik Oldsberg 90cc2ca615 auth-backend: expire signing keys 2020-06-21 17:00:49 +02:00
Patrik Oldsberg 0a305d7f70 auth-backend: initial identity provider implementation 2020-06-21 17:00:49 +02:00
blam 2a0371c306 chore(scaffolder): resetting loading the mock data 2020-06-20 05:59:40 +02:00
blam 22fbe0aaab feat(scaffolder): added the ability to process github remote sources, without authenication for now at least 2020-06-20 05:56:48 +02:00
blam 95344229ab chore(scaffolder): moving things around to make things work for the actually scaffoling 2020-06-20 03:33:41 +02:00
blam f04844441c chore(scaffolder): move express to dependencies for reasons 2020-06-19 11:05:25 +02:00
Nikita Nek Dudnik eac8ac8bd0 fix(catalog): make plugin conform to template 2020-06-19 04:02:58 +02:00
Nikita Nek Dudnik fce3e7576c fix(catalog): tests 2020-06-18 21:20:47 +02:00
blam ed05397694 chore(scaffolder): fix the exporting of the FilePreparer so we can actually setup a scaffolder in the backend 2020-06-18 18:09:36 +02:00
blam 299609a020 chore(scaffolder): refactoring some of the entity parsing away so that we can re-use it. and fix some of the semantic namings 2020-06-18 17:42:38 +02:00
Stefan Ålund 97311ba5c6 Update entity overview card grid (#1366) 2020-06-18 16:57:27 +02:00
Raghunandan Balachandran 2156b06280 Merge pull request #1368 from spotify/auth-documentation
Auth docs
2020-06-18 14:20:07 +02:00
blam ca1d5fa418 Merge branch 'master' of github.com:spotify/backstage into mob/prepare-from-catalog
* 'master' of github.com:spotify/backstage:
  address comments
  chore(catalog-model): move shared entity model logic here
2020-06-18 14:11:31 +02:00
blam 5835f06524 chore(scaffolder): Tidy up some things around the PR to make a litte cleaner and add some comments in places 2020-06-18 14:10:02 +02:00
blam 308c171747 Merge branch 'master' of github.com:spotify/backstage into mob/prepare-from-catalog
* 'master' of github.com:spotify/backstage: (60 commits)
  packages,plugins: remove main:src and fix some main fields
  packages/config: added get and getOptional
  changed  down caret to be up caret on user profile in the sidebar
  packages/config: add getOptionalConfig and getOptionalConfigArray to mirror other accessors
  packages/config-loader,core: update config usage to include context
  build(deps): bump @types/react from 16.9.25 to 16.9.37 (#1342)
  build(deps): bump rollup-plugin-esbuild from 2.0.0 to 2.1.0 (#1361)
  build(deps-dev): bump lint-staged from 10.2.9 to 10.2.11 (#1359)
  Polishing the Create page (#1353)
  Add some air between sidebar sections (#1355)
  Starred icon is yellow (#1351)
  Updated FAQ with Gitlab link (#1352)
  build(deps): bump react-helmet from 6.0.0 to 6.1.0 (#1327)
  packages/config: added context to keep track of where config is from for error messages
  packages/config: added .keys()
  packages/config: keep track of key prefix to display better error messages
  packages/config: optimize some error message handling
  packages/config: allow config readers to be backed by undefined data
  packages/config: flip around must* and get* to get* and getOptional*
  packages/core-api: fix invocation order when continuing to app after sign-in
  ...
2020-06-18 14:00:29 +02:00
Raghunandan b421ba6b8d review fixes 2020-06-18 13:55:03 +02:00
Fredrik Adelöw 3bff1d6a68 address comments 2020-06-18 13:28:19 +02:00
Fredrik Adelöw 8d961027a9 chore(catalog-model): move shared entity model logic here 2020-06-18 13:06:51 +02:00
Patrik Oldsberg a098ebca27 packages,plugins: remove main:src and fix some main fields 2020-06-18 12:25:25 +02:00
Raghunandan efd632d9ce logout -> sign out 2020-06-18 12:10:44 +02:00
Raghunandan bf93cfb343 docs docs 2020-06-18 12:09:05 +02:00
Patrik Oldsberg 06cf743d7a Merge pull request #1346 from spotify/rugvip/mustconf
packages/config: added must* variant for reading required primitive values
2020-06-18 10:30:10 +02:00
Stefan Ålund 1150e0a125 Polishing the Create page (#1353)
* Polishing the Create page

* Review comments
2020-06-17 22:57:25 +02:00
Stefan Ålund 0f1ba02bc7 Starred icon is yellow (#1351) 2020-06-17 22:38:45 +02:00