Add Scaleway, Yousign, Railway and Crisp access-review connectors
Four API-key, single-tenant (Pattern 3) connectors:
- Scaleway: secret key in the X-Auth-Token header plus an Organization ID
setting; GET /iam/v1alpha1/users (owner/member, status, two-factor),
per-connection BuildProbeURL.
- Yousign: Bearer API key; GET /v3/users (admin/owner/member, is_active);
production host with a static probe.
- Railway: Bearer account token; GraphQL me{workspaces{members}} aggregated
and deduplicated across workspaces; custom probe, since Railway returns
HTTP 200 with an errors body on a rejected token.
- Crisp: plugin token as HTTP Basic (identifier:key) plus a Website ID
setting and the X-Crisp-Tier header; GET /v1/website/{id}/operators/list,
custom probe and name resolver.
Scaleway and Crisp carry a required extra setting, so the console add-source
dialog maps organizationId/websiteId onto their scalewayOrganizationId and
crispWebsiteId API-key inputs; without that mapping the value is silently
dropped and the create is rejected.
Cassette-backed driver tests plus unit tests for the cross-workspace
deduplication, the probe contracts and the role/MFA helpers.
Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com>
This commit is contained in:
@@ -74,6 +74,10 @@ const (
|
||||
ConnectorProviderOpenRouter ConnectorProvider = "OPENROUTER"
|
||||
ConnectorProviderIncidentIO ConnectorProvider = "INCIDENT_IO"
|
||||
ConnectorProviderBrevo ConnectorProvider = "BREVO"
|
||||
ConnectorProviderScaleway ConnectorProvider = "SCALEWAY"
|
||||
ConnectorProviderYousign ConnectorProvider = "YOUSIGN"
|
||||
ConnectorProviderRailway ConnectorProvider = "RAILWAY"
|
||||
ConnectorProviderCrisp ConnectorProvider = "CRISP"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -135,6 +139,10 @@ func ConnectorProviders() []ConnectorProvider {
|
||||
ConnectorProviderOpenRouter,
|
||||
ConnectorProviderIncidentIO,
|
||||
ConnectorProviderBrevo,
|
||||
ConnectorProviderScaleway,
|
||||
ConnectorProviderYousign,
|
||||
ConnectorProviderRailway,
|
||||
ConnectorProviderCrisp,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -191,7 +199,11 @@ func (v ConnectorProvider) IsValid() bool {
|
||||
ConnectorProviderPylon,
|
||||
ConnectorProviderOpenRouter,
|
||||
ConnectorProviderIncidentIO,
|
||||
ConnectorProviderBrevo:
|
||||
ConnectorProviderBrevo,
|
||||
ConnectorProviderScaleway,
|
||||
ConnectorProviderYousign,
|
||||
ConnectorProviderRailway,
|
||||
ConnectorProviderCrisp:
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
@@ -174,6 +174,20 @@ type (
|
||||
LangfuseConnectorSettings struct {
|
||||
BaseURL string `json:"base_url"`
|
||||
}
|
||||
|
||||
// ScalewayConnectorSettings stores the Scaleway Organization ID. A secret
|
||||
// key is bound to one Organization, but GET /iam/v1alpha1/users requires
|
||||
// the organization_id explicitly, so it is captured up front.
|
||||
ScalewayConnectorSettings struct {
|
||||
OrganizationID string `json:"organization_id"`
|
||||
}
|
||||
|
||||
// CrispConnectorSettings stores the Crisp Website ID. A plugin token can
|
||||
// be connected to several websites, so the reviewed website is captured up
|
||||
// front as the {website_id} path segment on /v1/website/{website_id}/...
|
||||
CrispConnectorSettings struct {
|
||||
WebsiteID string `json:"website_id"`
|
||||
}
|
||||
)
|
||||
|
||||
// GrantType returns the OAuth2 grant type recorded on the connector's
|
||||
|
||||
15
pkg/coredata/migrations/20260627T107898Z.sql
Normal file
15
pkg/coredata/migrations/20260627T107898Z.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
-- Copyright (c) 2026 Probo Inc <hello@probo.com>.
|
||||
--
|
||||
-- Permission to use, copy, modify, and/or distribute this software for any
|
||||
-- purpose with or without fee is hereby granted, provided that the above
|
||||
-- copyright notice and this permission notice appear in all copies.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
-- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
-- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
-- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
-- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
-- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
-- PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
ALTER TYPE connector_provider ADD VALUE IF NOT EXISTS 'CRISP';
|
||||
15
pkg/coredata/migrations/20260627T580764Z.sql
Normal file
15
pkg/coredata/migrations/20260627T580764Z.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
-- Copyright (c) 2026 Probo Inc <hello@probo.com>.
|
||||
--
|
||||
-- Permission to use, copy, modify, and/or distribute this software for any
|
||||
-- purpose with or without fee is hereby granted, provided that the above
|
||||
-- copyright notice and this permission notice appear in all copies.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
-- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
-- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
-- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
-- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
-- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
-- PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
ALTER TYPE connector_provider ADD VALUE IF NOT EXISTS 'SCALEWAY';
|
||||
15
pkg/coredata/migrations/20260627T668415Z.sql
Normal file
15
pkg/coredata/migrations/20260627T668415Z.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
-- Copyright (c) 2026 Probo Inc <hello@probo.com>.
|
||||
--
|
||||
-- Permission to use, copy, modify, and/or distribute this software for any
|
||||
-- purpose with or without fee is hereby granted, provided that the above
|
||||
-- copyright notice and this permission notice appear in all copies.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
-- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
-- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
-- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
-- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
-- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
-- PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
ALTER TYPE connector_provider ADD VALUE IF NOT EXISTS 'RAILWAY';
|
||||
15
pkg/coredata/migrations/20260627T820699Z.sql
Normal file
15
pkg/coredata/migrations/20260627T820699Z.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
-- Copyright (c) 2026 Probo Inc <hello@probo.com>.
|
||||
--
|
||||
-- Permission to use, copy, modify, and/or distribute this software for any
|
||||
-- purpose with or without fee is hereby granted, provided that the above
|
||||
-- copyright notice and this permission notice appear in all copies.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
-- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
-- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
-- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
-- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
-- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
-- PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
ALTER TYPE connector_provider ADD VALUE IF NOT EXISTS 'YOUSIGN';
|
||||
Reference in New Issue
Block a user