Commit Graph

279 Commits

Author SHA1 Message Date
Jussi Hallila 6668b6e2fc Modify tech insights default cadence to be less eager.
Signed-off-by: Jussi Hallila <jussi@hallila.com>
2022-01-03 13:06:59 +01:00
Fredrik Adelöw 0dcd1dd64f Introduce TaskScheduler into backends
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-12-25 15:14:55 +01:00
MT Lewis 5f1333a60b Merge pull request #8357 from backstage/example-app-permission-integration
Example app permission integration
2021-12-22 14:32:25 +00:00
MT Lewis 20d10b57d6 permission-node: rename static create method to fromConfig
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2021-12-21 09:46:22 +00:00
Joon Park 0e8ec6d974 Rename all the things
Signed-off-by: Joon Park <joonp@spotify.com>
2021-12-17 18:16:47 +00:00
Joon Park 816e0e04f9 Address various comments round 1
Signed-off-by: Joon Park <joonp@spotify.com>
2021-12-17 18:16:47 +00:00
Joon Park 24dce3ca43 Reintroduce noop token manager and refactor ServerPermissionClient
Signed-off-by: Joon Park <joonp@spotify.com>
2021-12-17 18:16:47 +00:00
Joon Park ea96ce2449 Change ServerTokenManager method name back to fromConfig
Signed-off-by: Joon Park <joonp@spotify.com>
2021-12-17 18:16:47 +00:00
Joon Park f786dc8140 Generate secret in development
Signed-off-by: Joon Park <joonp@spotify.com>
2021-12-17 18:16:46 +00:00
Joon Park 6b8713df35 Create ServerPermissionClient and add it to example backend
Signed-off-by: Joon Park <joonp@spotify.com>
2021-12-17 18:16:46 +00:00
Praveen Ranjan Keshri 1e7070443d Fixes post review by Rugvip:
1. Ensuring that reloadIntervals, if present, is a valid positive number
2. Remote config error message fix
3. Removed remote config from example backend
4. Lessened the writing.md
5. Multiple changesets

Signed-off-by: Praveen Ranjan Keshri <prkeshri@gmail.com>
2021-12-08 00:21:53 +05:30
Praveen Ranjan Keshri d5d69f1169 Merge branch 'backstage:master' into 7340-remote-config-fix 2021-12-07 22:46:46 +05:30
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
Praveen Ranjan Keshri 776180b740 Fixed bug in backend-common to allow passing of remote option in order to enable passing remote url in --config option. The remote option should be passed along with reloadIntervalSeconds from packages/backend/src/index.ts (Updated the file as well)
Signed-off-by: Praveen Ranjan Keshri <prkeshri@gmail.com>
2021-11-25 01:59:54 +05:30
Nataliya Issayeva 83aa387b62 Default to noop tokenManager and no backend secret
Signed-off-by: Nataliya Issayeva <nissayeva@users.noreply.github.com>
2021-11-18 07:57:53 -08:00
Nataliya Issayeva 9cbb3cf908 Remove auth middleware
Signed-off-by: Nataliya Issayeva <nissayeva@users.noreply.github.com>
2021-11-18 07:57:52 -08:00
Nataliya Issayeva b38d77f4f0 Change AuthIdentityTokenManager to ServerTokenManager
Co-authored-by: Joe Porpeglia <joeporpeglia@users.noreply.github.com>
Co-authored-by: Tim Hansen <timbonicus@gmail.com>
Signed-off-by: Nataliya Issayeva <nissayeva@users.noreply.github.com>
2021-11-18 07:56:42 -08:00
Nataliya Issayeva 8ceffe5f98 Use backend secret from config
Signed-off-by: Nataliya Issayeva <nissayeva@users.noreply.github.com>
2021-11-18 07:55:26 -08:00
Nataliya Issayeva 2533294ec1 Static create and private constructor not really needed
Signed-off-by: Nataliya Issayeva <nissayeva@users.noreply.github.com>
2021-11-18 07:55:26 -08:00
Nataliya Issayeva f3d9de436f Make tokenManager constructor private and add static create method
Signed-off-by: Nataliya Issayeva <nissayeva@users.noreply.github.com>
2021-11-18 07:55:26 -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
Nataliya Issayeva 657a6a0b8e Add code to enable authorization
Signed-off-by: Nataliya Issayeva <nissayeva@users.noreply.github.com>
2021-11-18 07:55:25 -08:00
Iain Billett ccc8a7ff5d Split fact retrievers
Split fact retriever into severeal more specialised retrievers.
Ditch the dynamic addition of annotation facts in favour of
explicit annotation facts. Having dynamic facts makes the
versioning system somewhat meaningless.

Signed-off-by: Iain Billett <iain@roadie.io>
2021-11-17 15:22:01 +00:00
Iain Billett d4a3dbb75b Expose catalogFactRetriever & configure in backend
Signed-off-by: Iain Billett <iain@roadie.io>
2021-11-15 18:33:29 +00:00
Fredrik Adelöw 222793c849 do not modify the backend yet
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-11-11 20:21:51 +01:00
Fredrik Adelöw d4f412fcd3 Get most of the task worker code into place
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-11-11 20:21:51 +01:00
Fredrik Adelöw d088c7f0a3 Implement the locks part of the task manager
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-11-11 20:21:49 +01:00
Jussi Hallila 5ebfedd9c2 Add new api-report
Update persistence context to not be wrapped into a useless class. Modify the way test databases are created.

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-10-29 15:20:58 +02:00
Jussi Hallila da4577d731 Un-yikesify example FactRetriever cron to not pollute the DB
Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-10-29 15:20:58 +02:00
Jussi Hallila 2b3e959ef4 Modifications after PR review
* Change entity filter to be an actual entity filter instead of a list of kinds or types
* Modify/simplify types a little bit
* Split common type libs to one for node and one isomorphic
* Remove unnecessary items from FactChecker interface to simplify execution loop.

Needs still matching README.md changes.

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-10-29 15:20:58 +02:00
Jussi Hallila df000b9596 Address various code review comments.
Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-10-29 15:20:58 +02:00
Jussi Hallila 75fc6ac85b Implement Tech Insights backend
* Add common types and interfaces for Tech Insights. Exposing components needed to use and modify tech-insights-backend module and to implement individual Fact Retrievers, Fact Checkers and their persistence options.

* Implement a framework to run fact retrievers and store fact data into the database. Add migration scripts to create a new database for `tech_insights`.

* Create a default implementation of a FactChecker enabling users to construct checks and run them and generate scorecards based on checks.

* To be able to use tech insights in your application you need to implement `FactRetriever`s to retrieve and return data for facts and register them to the tech-insights-backend. If you want to use fact checking functionality, you need to create `check`s and register them to an implementation of a `FactChecker`.

For more information see documentation on the README.md files of the respective packages.

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-10-29 15:20:58 +02:00
Fredrik Adelöw d2bf8ca90d Merge pull request #7484 from awanlin/awanlin/azure-devops-frontend-plugin
Adding Azure DevOps frontend plugin
2021-10-13 12:30:39 +02:00
Morgan Martinet a982e166c5 Enable customization of services used by the kubernetes backend plugin
Signed-off-by: Morgan Martinet <morgan@mmm-experts.com>
2021-10-12 00:59:04 -04:00
Andre Wanlin e290590517 Applied suggested async and await changes
Signed-off-by: Andre Wanlin <awanlin@rapidrtc.com>
2021-10-11 15:12:49 -05:00
Andre Wanlin 0b0876b0da Another set of feedback improvements
Signed-off-by: Andre Wanlin <awanlin@rapidrtc.com>
2021-10-11 15:12:49 -05:00
Patrik Oldsberg eaca0f53fb backend,create-app: install ScaffolderEntitiesProcessor
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-10 20:36:01 +02:00
Andre Wanlin 2f5e0c5272 Adding Azure DevOps backend plugin
Signed-off-by: Andre Wanlin <awanlin@rapidrtc.com>
2021-09-25 10:36:34 -05:00
Fredrik Adelöw e42a4ed29a Merge pull request #7171 from backstage/mob/refresh-catalog
Catalog: Add API endpoint for refreshing entities
2021-09-16 14:24:55 +02:00
Fredrik Adelöw 559a0de98c WIP
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-09-13 16:55:17 +02:00
Jussi Hallila 65a2d67735 Modify fromConfig to actually use the config. Update api-reports.
Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-09-13 09:54:12 +02:00
Jussi Hallila f7c06bcadd Add some more casing changes.
Modify DefaultTechDocsCollator to have a static constructor method.

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-09-09 11:57:14 +02:00
Jussi Hallila 6f45fc7990 Modify TechDocsCollator to be aware of new urls
* Add boolean constructor param to define if to use legacy paths
* Swap urls to match new pattern
* Add few tests

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-09-03 16:00:00 +02:00
Roy Jacobs ce17a16931 Allow the entities indexed by DefaultCatalogCollator to be filtered by kind
Signed-off-by: Roy Jacobs <roy.jacobs@gmail.com>
2021-08-25 14:52:58 +02:00
Johan Haals 6277060d72 Add experimental disclamer
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-08-19 13:28:24 +02:00
Johan Haals 693a17fcdc Instrument catalog with prometheus
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-08-19 10:51:42 +02:00
Oliver Sand 7bcb590000 Fix lint
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-08-05 09:50:50 +02:00
Oliver Sand 9255e14309 Add postgres based SearchEngine
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-08-05 09:16:43 +02:00
Jussi Hallila 54e1280b6a * Modify index/alias name handling.
* Change config key name to be all lowercase
* Documentation updates

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-08-03 13:07:25 +02:00
Jussi Hallila d9c13d535b Implement ElasticSearch search engine
* Adding indexing, searching and default translator for ElasticSearch engine
* Modifying default backend to use ES if it is enabled
* Adding configuration schema to configure ElasticSearch 3 different ways
   * Elastic.co hosted solution
   * AWS hosted ElasticSearch Service
   * Custom, using standard ElasticSearch URL and auth info
* Add and modify some of the documentation regarding search

Signed-off-by: Jussi Hallila <jussi@hallila.com>
2021-07-30 14:26:32 +02:00