Connectors

A connector reads only what the table lists, and only what its credential permits. Most connectors are read-only. The forge connectors (GitHub, GitLab, Gitea and Azure DevOps) also write branches, commits and pull requests. The GitHub, GitLab and Azure DevOps connectors also start and cancel CI runs.

What each connector may pull

ConnectorCredentialData Heplon may pull
BackstageNoneCatalog components: their metadata, component spec, and relations to other entities
GitHubGitHub App installationRepositories, repository contents, commit history, tags, pull requests, GitHub Actions workflow runs, their jobs, job logs, and caches
GitLabStatic token or delegated OAuthProjects, repository contents, commit history, tags, merge requests, pipelines, their jobs, and job logs
GiteaStatic token or delegated OAuthRepositories, repository contents, commit history, tags, pull requests
Azure DevOpsPersonal access tokenRepositories across every project in the organisation, repository contents, tags, pull requests, Azure Pipelines build runs, their jobs, and job logs
SlackBot tokenChannel names, and the messages and thread replies in the configured channels
JiraService-account OAuth client credentials or API tokenNothing yet. Heplon only checks that the credential works
KubernetesService-account bearer tokenAny Kubernetes resource the token can read, namespaced or cluster-scoped
TempoOptional bearer tokenTraces, trace search results, and attribute values
LokiOptional bearer tokenLog lines, label names, and label values
PrometheusOptional bearer tokenMetric samples, series, label names and values, metric metadata, and active alerts

GitHub App permissions

The GitHub App of a Heplon instance needs these repository permissions:

PermissionLevelUsed for
Metadatareadlist the repositories of the installation
Contentsread and writeread files and commit history, create and delete branches, commit
Workflowswritecommit changes to files below .github/workflows/
Actionsread and writeread workflow runs, jobs, logs and caches, dispatch and cancel runs
Pull requestsread and writeopen, publish and close pull requests, and read their state

With only read access, Heplon still reads, and GitHub refuses each write with HTTP 403.

GitLab token scopes

The GitLab token needs the api scope, and its user needs the Developer role on the group. With these, Heplon reads, creates and deletes branches, commits, starts and cancels pipelines, and opens merge requests. A token with only read_api still reads, and GitLab refuses each write with HTTP 403. See Connect GitLab for what Heplon writes.

The credential sets the ceiling

The categories above describe the most a connector can pull. What it actually pulls is the intersection of those categories and what the configured credential is allowed to see. Heplon holds no separate access of its own, so it can never reach data the credential cannot reach.

For example, if the service account whose token was used to configure the Kubernetes connector cannot read the contents of Secrets, then Heplon cannot read them either. The same applies elsewhere: a GitLab token that sees three projects gives Heplon those three projects.

Scoping the credential is therefore the way to scope Heplon.