@omen.foundation/node-microservice-runtime 0.1.86 → 0.1.87
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);
|