Commit Graph

28 Commits

Author SHA1 Message Date
Patrick Jungermann 593dea6710 feat: support Basic Auth for Bitbucket Server
Closes: #12586
Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
2022-07-25 15:53:30 +02:00
Patrick Jungermann 8829e175f2 fix: allow frontend visibility for integrations itself
Currently, `integrations` is retrieved at catalog-import to check
configured integrations.

This could fail if there was no config below `integrations` which has `@visibility frontend`.

This happened if no integration or only non-Github integrations without
frontend visible properties like `integrations.bitbucketCloud` are used.

After this change, at least `integrations` will always be visible to the frontend.

Closes: #11700
Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
2022-06-15 13:17:20 +02:00
Niklas Aronsson 6673babab9 GerritUrlReader: Implemented "readTree"
"readTree" has been implemented for the "GerritUrlReader". Gerrit have
a REST API's to download repo contents but there are a number of
limitations that makes it unusable.

This implementation works as follows:
* The project and branch is parsed from the url.
* The current revision is fetched from the Gerrit REST API.
* The revision string is used as "etag".
* If the etag has changed a temporary directory is created.
* The project is cloned to the temporary directory.
* The cloned content is read into a "Readable Stream".
* The temporary directory is removed.
* "readTree" returns a response using "fromTarArchive" as read from the
  temporary directory.

Also added an option to specify the base "cloneUrl" has been added to the
gerrit integration config.

Signed-off-by: Niklas Aronsson <niklasar@axis.com>
2022-04-22 14:52:02 +02:00
Patrick Jungermann 1b4e1e2306 feat: split integrations.bitbucket -> bitbucketCloud / bitbucketServer
Split `integrations.bitbucket` into `integrations.bitbucketCloud`
and `integrations.bitbucketServer`
while staying backwards compatible for now
(== `BitbucketIntegration` loads from the new configs, too, if the old is not used).

Relates-to: #9923
Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
2022-04-19 19:20:55 +02:00
Iain Billett 1e10a3f9ef Merge remote-tracking branch 'upstream/master' into add-external-id-to-s3-integration 2022-03-15 16:57:27 +00:00
Niklas Aronsson 0885854ff3 Fixed review comments
* Rename "apiBaseUrl" to the more suitable "baseUrl".
* Removed the Gerrit location doc (will be added later together
  with the "urlReader" implementation.
* Fixed the line number handling in Gerrit/resolveUrl.

Signed-off-by: Niklas Aronsson <niklasar@axis.com>
2022-03-14 10:34:53 +01:00
Niklas Aronsson b0c0fccacf Gerrit config: Make the apiBaseUrl optional
If the apiBaseUrl is not set assume that the gerrit instance
uses https and can be reached on the address specified by the
"host" option.

Signed-off-by: Niklas Aronsson <niklasar@axis.com>
2022-03-11 13:35:23 +01:00
Iain Billett a8c5f1a08f Add an optional external Id field
Signed-off-by: Iain Billett <iain@roadie.io>
2022-03-10 14:41:07 +00:00
Niklas Aronsson 403837cbac Added a ScmIntegration for Gerrit
A new ScmIntegration has been added for reading entities from
gits hosted by Gerrit. The UrlReader implementation will be done
in an upcoming patch.

The Gerrit configuration supports the following values:

* host (required) : The host of the gerrit instance to use.
* apiBaseUrl (required): The base url of the gerrit api.
* username (optional): The username to use during authentication.
* password (optional): The password or http token to use for
  authentication.

Signed-off-by: Niklas Aronsson <niklasar@axis.com>
2022-03-08 10:13:09 +01:00
Leon Stein 60dee60d9b update config schema
Signed-off-by: Leon Stein <leons727@gmail.com>
2021-12-28 10:29:53 -05:00
Leon Stein bc78cc3dca use endpoint/s3ForcePathStyle instead of validateHost/ssl per PR feedback
Signed-off-by: Leon Stein <leons727@gmail.com>
2021-12-28 10:24:12 -05:00
Sean Tan e11fcbc74e Remove extra comment line and regenerate yarn.lock file
Signed-off-by: Sean Tan <seant@splunk.com>
2021-08-12 10:05:02 -07:00
Sean Tan 9d5738b3f5 Fix format errors and other small changes per suggestion
Signed-off-by: Sean Tan <seant@splunk.com>
2021-08-12 10:05:02 -07:00
Sean Tan 2d7bf1c6b0 Add roleArn to AwsS3IntegrationConfig
Signed-off-by: Sean Tan <seant@splunk.com>
2021-08-12 10:05:02 -07:00
Kiera Jost da3fcac9f4 Fix typo in integration config awsS3 'accesKeyId'
Signed-off-by: Kiera Jost <kjost@splunk.com>
2021-08-12 10:05:02 -07:00
Sean Tan 2e5e2decc7 Make change to AwsS3 Integration to support list
Signed-off-by: Sean Tan <seant@splunk.com>
2021-08-12 10:05:02 -07:00
Sean Tan b8cb120092 Started changes from suggestions made on recent PR.
Signed-off-by: Sean Tan <seant@splunk.com>
2021-08-12 10:05:02 -07:00
Fredrik Adelöw a88073c29a Update copyright headers
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-06-18 20:26:42 +02:00
blam 50b9eba922 chore: update the github app id config schema
Signed-off-by: blam <ben@blam.sh>
2021-06-01 14:23:07 +02:00
Martina Iglesias Fernandez 6a9b9d0f7c Fix some comments
Signed-off-by: Martina Iglesias Fernandez <martina@roadie.io>
2021-04-07 11:27:41 +02:00
Martina Iglesias Fernandez d5cb51331a Only allow one googleGcs config object
Signed-off-by: Martina Iglesias Fernandez <martina@roadie.io>
2021-04-07 11:27:41 +02:00
Martina Iglesias Fernandez e4cdec27e9 Fix comments on GoogleGcsUrlReader
Signed-off-by: Martina Iglesias Fernandez <martina@roadie.io>
2021-04-07 11:27:41 +02:00
Fredrik Adelöw 277644e098 Include missing fields in GitLab config schema
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-03-08 19:08:24 +01:00
Fredrik Adelöw b7819bbc0f integration: do not ship apps config to the frontend 2021-01-21 13:51:17 +01:00
Fredrik Adelöw 751b700f8a bitbucket casing 2021-01-20 14:02:10 +01:00
Fredrik Adelöw c2450d458f integration: take over the config 2021-01-20 13:50:06 +01:00
Johan Haals 25a5d6bf2f Refactor GitHubAppManager, add deps & config 2021-01-14 13:53:29 +01:00
Patrik Oldsberg b3d4e4e57a backend-common: move the frontend visibility of config to @backstage/integration 2020-11-26 22:28:38 +01:00