Private Coreapps

Give your Core a token so it can install apps from private repositories and registries.

Coreapps are often private: an internal tool, or an app a developer makes for your organization only. Its repository and its image then need a token before your Core can read them.

The Core keeps tokens by host (for example gitea.example.com), or by host and owner (gitea.example.com/my-team) when apps from different accounts or organizations on the same host need different tokens. It uses the same token for the app’s repository and its image. Tokens are stored on the Core, readable only by root, and never shown again.

Make a token

On Gitea:

  1. Sign in as an account that can read the app’s repository.
  2. Go to Settings, then Applications, and generate a new token.
  3. Give it read access to repository and package, and nothing more.
  4. Copy the token. Gitea shows it only once.

Use the same account’s user name when you add the token to the Core.

Add the token to the Core

For every private app on a host:

coreapps login gitea.example.com my-user

For one owner’s apps on that host (a user or an organization):

coreapps login gitea.example.com/my-team my-user

Then paste the token and press Enter. (It waits for the token without a prompt.) The Core checks it with the host’s package registry and saves nothing if it’s refused.

When an app is installed or updated from https://gitea.example.com/my-team/..., the Core uses the token for gitea.example.com/my-team if there is one, and otherwise the token for gitea.example.com.

See and remove tokens

coreapps logins

lists the hosts and owners the Core has tokens for, with their user names (not the tokens).

coreapps logout gitea.example.com/my-team

forgets a token. Installed apps keep running; updating them needs a token again.