Configuration
About 307 words
The backend plugin has one configuration key of its own and reads two of Backstage's. The frontend plugin has none.
tailscale.allowedRepos
tailscale:
allowedRepos:
- acme/network| Type | list of strings, owner/name |
| Default | unset: no repository |
| Read | at startup |
The GitHub repositories Backstage may write a policy file to. A policy entity's spec.publish.repo says where its file goes; a repository missing from this list isn't written to, and the console shows Not published: acme/network is not in Backstage's tailscale.allowedRepos. The comparison ignores case.
The key is declared in the backend package's config.d.ts, so backstage-cli config:check knows it.
Keys from Backstage
| Key | Used for |
|---|---|
app.baseUrl | Links back to Backstage: the policy entity's URL in the rendered file's header comment, and entity links in the pull request description. Without it, the header has no link and the description names entities without linking them. |
integrations.github | The credentials for publishing. The backend asks the GitHub integration for credentials for https://github.com/<owner>/<name>, so an entry for host: github.com with a GitHub App or a token is needed. See Publish to GitHub for the permissions. |
The catalog
The plugin doesn't add catalog configuration, but it relies on two things you set there:
- a location that allows
kind: Tailscale(see Restrict where policies come from); - the Groups, Users, Components, APIs and
kubernetes-clusterResources it reads, from whatever sources you use.
Fixed values
These aren't configurable:
| Value | |
|---|---|
| Publishing task ID | tailscale-publish |
| Publishing frequency | every 60 minutes |
| Publishing timeout | 5 minutes |
| Delay before the first run after startup | 3 minutes |
| How long the backend reuses a catalog read for the console | 1 minute |
How long the frontend reuses /overview | 1 minute |
| GitHub API | https://api.github.com |
