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:
Aurélien Sibiril
2026-06-27 20:03:10 +02:00
parent 22df5742ee
commit b408aab59d
30 changed files with 2024 additions and 1 deletions

View File

@@ -189,6 +189,18 @@ func apiKeyConnectorSettings(input types.CreateAPIKeyConnectorInput) (json.RawMe
}
return json.Marshal(&coredata.LangfuseConnectorSettings{BaseURL: *input.LangfuseBaseURL})
case coredata.ConnectorProviderScaleway:
if input.ScalewayOrganizationID == nil || *input.ScalewayOrganizationID == "" {
return nil, fmt.Errorf("cannot create scaleway connector: scalewayOrganizationId is required")
}
return json.Marshal(&coredata.ScalewayConnectorSettings{OrganizationID: *input.ScalewayOrganizationID})
case coredata.ConnectorProviderCrisp:
if input.CrispWebsiteID == nil || *input.CrispWebsiteID == "" {
return nil, fmt.Errorf("cannot create crisp connector: crispWebsiteId is required")
}
return json.Marshal(&coredata.CrispConnectorSettings{WebsiteID: *input.CrispWebsiteID})
}
return nil, nil

View File

@@ -92,6 +92,13 @@ enum ConnectorProvider
value: "go.probo.inc/probo/pkg/coredata.ConnectorProviderIncidentIO"
)
BREVO @goEnum(value: "go.probo.inc/probo/pkg/coredata.ConnectorProviderBrevo")
SCALEWAY
@goEnum(value: "go.probo.inc/probo/pkg/coredata.ConnectorProviderScaleway")
YOUSIGN
@goEnum(value: "go.probo.inc/probo/pkg/coredata.ConnectorProviderYousign")
RAILWAY
@goEnum(value: "go.probo.inc/probo/pkg/coredata.ConnectorProviderRailway")
CRISP @goEnum(value: "go.probo.inc/probo/pkg/coredata.ConnectorProviderCrisp")
}
type ConnectorProviderInfo {
@@ -174,6 +181,8 @@ input CreateAPIKeyConnectorInput {
renderWorkspaceId: String
neonOrganizationId: String
langfuseBaseUrl: String
scalewayOrganizationId: String
crispWebsiteId: String
}
type CreateAPIKeyConnectorPayload {