@omen.foundation/node-microservice-runtime 0.1.86 → 0.1.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -509,16 +509,16 @@ async function uploadDockerImage({
|
|
|
509
509
|
progress,
|
|
510
510
|
}) {
|
|
511
511
|
const baseUrl = `${registryUrl}${uniqueName}/`;
|
|
512
|
-
//
|
|
513
|
-
//
|
|
512
|
+
// Match C# CLI and backend: use realm PID in headers (backend checks registry using rc.projectId)
|
|
513
|
+
// uniqueName uses gamePid (matches backend's rc.gameId), but headers use realm PID
|
|
514
514
|
const headers = {
|
|
515
515
|
'x-ks-clientid': cid,
|
|
516
|
-
'x-ks-projectid':
|
|
516
|
+
'x-ks-projectid': pid, // Use realm PID (matches backend's rc.projectId in DockerRegistryClient)
|
|
517
517
|
'x-ks-token': token, // Access token from login
|
|
518
518
|
};
|
|
519
519
|
if (process.env.BEAMO_DEBUG === '1' || process.env.BEAMO_NODE_DEBUG === '1') {
|
|
520
520
|
console.error(`[beamo-node] Uploading to: ${baseUrl}`);
|
|
521
|
-
console.error(`[beamo-node] Upload headers PID: ${
|
|
521
|
+
console.error(`[beamo-node] Upload headers PID: ${pid} (realm), gamePid: ${gamePid}`);
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
const { manifestEntry, configBuffer, layers } = await readDockerImageTar(imageTarPath);
|
|
@@ -1139,7 +1139,7 @@ async function main() {
|
|
|
1139
1139
|
const baseUrl = `${registryUrl}${uniqueName}/`;
|
|
1140
1140
|
const verifyHeaders = {
|
|
1141
1141
|
'x-ks-clientid': cid,
|
|
1142
|
-
'x-ks-projectid':
|
|
1142
|
+
'x-ks-projectid': pid, // Use realm PID (matches backend's rc.projectId when checking registry)
|
|
1143
1143
|
'x-ks-token': token,
|
|
1144
1144
|
};
|
|
1145
1145
|
|