Let a Core keep a token for one owner's apps on a host
coreapp login <host>/<owner> saves a token used for that owner's repositories and images before the host's token, so apps from different accounts on one host can use different tokens. git sends it only under https://<host>/<owner>/; docker gets it for that pull only. Errors name the token that was tried. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -100,7 +100,7 @@ each new app explains the files and the settings it gets.
|
||||
| `coreapp list` | The apps on the Core installed this way |
|
||||
| `coreapp install [--downgrade] <https://host/owner/repo>[@tag]` | Install a published app from its repository on the Core, as its owner would: shows what it is and needs, asks, then installs (default: the newest release tag; an older release than the installed one only with `--downgrade`) |
|
||||
| `coreapp update <name>` | Update an app installed from a repository to its newest release |
|
||||
| `coreapp login <host>` / `logout <host>` / `logins` | Give the Core a token for private apps from a host (asks for the user and token), forget it, list them |
|
||||
| `coreapp login <host>[/<owner>]` / `logout <host>[/<owner>]` / `logins` | Give the Core a token for private apps from a host, or from one owner (user or organization) there (asks for the user and token), forget it, list them |
|
||||
| `coreapp publish [--platform <list>]` | Build the release image, push it to the registry in `coreapp.toml` (`image:version`, never replacing a published version) and tag the commit `v<version>` |
|
||||
| `coreapp remove` | Uninstall it from the Core, with its database and sign-in client (asks first) |
|
||||
|
||||
@@ -119,8 +119,11 @@ It reads only `coreapp.toml` and `icon.png` at the newest release tag
|
||||
`version`, and pulls the image from its registry. The repository and the
|
||||
image can be private: `coreapp login gitea.example.com` gives the Core a
|
||||
token for that host (for Gitea, one with read access to repositories and
|
||||
packages), which the installer uses for the repository and the image. It
|
||||
keeps tokens in `/etc/coreapps/credentials` on the Core (root only); docker
|
||||
packages), which the installer uses for the repository and the image.
|
||||
`coreapp login gitea.example.com/my-team` gives one for that owner's apps
|
||||
only (used before the host's), for when apps from different accounts on
|
||||
one host need different tokens; git sends it only under
|
||||
`https://gitea.example.com/my-team/`. It keeps tokens in `/etc/coreapps/credentials` on the Core (root only); docker
|
||||
gets the token only for each pull, so the Core keeps no docker login.
|
||||
The Core runs the image it pulled at install, by its digest
|
||||
(`image:version@sha256:...`), so pushing the tag again can't change an
|
||||
|
||||
Reference in New Issue
Block a user