mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-19 11:25:56 +00:00
Preview update channel with its own signing key
- keys/preview-signing.pub: preview packages and the preview pointer are signed with a separate key, so a stable Manager (stable key only) can never accept them. The preview Manager trusts both keys for packages (it starts from stable servers and stable base packages); each channel pointer must carry its own key's signature. - Channel 'preview': pointer preview.json on the preview-channels branch, releases preview-server-<version>. The app resolves it first and falls back to stable until a preview release exists. - coa-release public-key prints the public half of the signing key; sign-channel writes the channel's own release tag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9153e3ece5
commit
df4a97bff2
6 files changed
+115
-13
No files matched your search
@@ -275,9 +275,15 @@ fn update_source(custom: Option<String>) -> Result<Source> {
|
||||
match pick {
|
||||
Some(p) if p.to_ascii_lowercase().starts_with("http") => Ok(Source::Url(p)),
|
||||
Some(p) => Ok(Source::Dir(PathBuf::from(p))),
|
||||
None => match coa_core::channels::resolve("stable") {
|
||||
// The Modules Preview follows its own signed channel; until the first preview release exists it
|
||||
// falls back to the stable channel (a stable server is where every preview server starts).
|
||||
None => match coa_core::channels::resolve("preview") {
|
||||
Ok(source) => Ok(source),
|
||||
Err(Error::PackageNotPublished(_)) => Ok(Source::Url(DEFAULT_UPDATE_URL.into())),
|
||||
Err(Error::PackageNotPublished(_)) => match coa_core::channels::resolve("stable") {
|
||||
Ok(source) => Ok(source),
|
||||
Err(Error::PackageNotPublished(_)) => Ok(Source::Url(DEFAULT_UPDATE_URL.into())),
|
||||
Err(error) => Err(error),
|
||||
},
|
||||
Err(error) => Err(error),
|
||||
},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user