Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into userns-dont-map-root
Browse files Browse the repository at this point in the history
  • Loading branch information
zenhack committed Apr 3, 2022
2 parents 2bb450f + 6ac2383 commit 6d4ed35
Show file tree
Hide file tree
Showing 9 changed files with 922 additions and 840 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### v0.295 (2022-03-13) [bugfixes]
- Updated dependencies. (No other changes.)

### v0.294 (2022-02-12) [bugfixes]
- Updated dependencies. (No other changes.)

### v0.293 (2022-01-16) [bugfixes]
- Updated dependencies. (No other changes.)

Expand Down
2 changes: 1 addition & 1 deletion deps/boringssl
Submodule boringssl updated from ec476e to e5abf5
2 changes: 1 addition & 1 deletion deps/ekam
Submodule ekam updated from 77c338 to 28f5e9
1,723 changes: 897 additions & 826 deletions shell/npm-shrinkwrap.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions shell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.16.7",
"@babel/runtime": "^7.17.2",
"@root/acme": "^3.1.0",
"@root/csr": "^0.8.1",
"@root/keypairs": "^0.9.0",
Expand All @@ -37,21 +37,21 @@
"acme-dns-01-vultr": "^3.0.2",
"babel-runtime": "^6.26.0",
"bignum": "^0.13.0",
"body-parser": "^1.19.1",
"body-parser": "^1.19.2",
"content-type": "^1.0.4",
"fibers": "^4.0.3",
"heapdump": "^0.3.15",
"intro.js": "git+https://github.com/sandstorm-io/intro.js.git#8e1c7604f251ec874bf4ae4d7b4f11a14cee697e",
"ip": "^1.1.5",
"ldapjs": "^1.0.2",
"mailparser": "^0.6.2",
"meteor-node-stubs": "^1.1.0",
"meteor-node-stubs": "^1.2.0",
"node-forge": "^1.2.1",
"nodemailer": "^6.7.2",
"nodemailer-smtp-pool": "^2.8.3",
"openid-client": "^4.9.1",
"smtp-server": "^1.17.0",
"stripe": "^8.197.0",
"stripe": "^8.209.0",
"xml-crypto": "^2.1.3",
"xml2js": "^0.2.8",
"xmlbuilder": "^8.2.2",
Expand All @@ -60,8 +60,8 @@
"devDependencies": {
"@typescript-eslint/parser": "^3.10.1",
"babel-eslint": "^10.1.0",
"chai": "^4.3.4",
"chai": "^4.3.6",
"eslint": "^6.8.0",
"typescript": "^4.5.4"
"typescript": "^4.6.2"
}
}
6 changes: 3 additions & 3 deletions src/sandstorm/run-bundle.c++
Original file line number Diff line number Diff line change
Expand Up @@ -2482,15 +2482,15 @@ private:
headerTableBuilder.getFutureTable(), shellHttpAddr, clientSettings);

GatewayService::Tables gatewayTables(headerTableBuilder);
kj::HttpHeaderId hXRealIp = headerTableBuilder.add("X-Real-Ip");
auto headerTable = headerTableBuilder.build();

GatewayService service(io.provider->getTimer(), *shellHttp, kj::cp(router),
gatewayTables, config.rootUrl, config.wildcardHost,
config.termsPublicId.map(
[](const kj::String& str) -> kj::StringPtr { return str; }),
config.allowLegacyRelaxedCSP);

kj::HttpHeaderId hXRealIp = headerTableBuilder.add("X-Real-Ip");

auto headerTable = headerTableBuilder.build();
kj::HttpServer server(io.provider->getTimer(), *headerTable, [&](kj::AsyncIoStream& conn) {
return kj::heap<RealIpService>(service, hXRealIp, conn);
});
Expand Down
7 changes: 6 additions & 1 deletion src/sandstorm/update-tool.c++
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,15 @@ public:
kj::FdOutputStream(raiiOpen(arg, O_WRONLY | O_APPEND | O_CREAT, 0600))
.write(random, sizeof(random));

// Generate the key
byte publicKey[crypto_sign_ed25519_PUBLICKEYBYTES];
byte secretKey[crypto_sign_ed25519_SECRETKEYBYTES];
KJ_ASSERT(crypto_sign_ed25519_seed_keypair(publicKey, secretKey, random) == 0);

// Write key.
capnp::MallocMessageBuilder message;
auto key = message.getRoot<PublicSigningKey>();
memcpy(getUnderlyingBytes(kj::cp(key), sizeof(random)), random, sizeof(random));
memcpy(getUnderlyingBytes(kj::cp(key), sizeof(publicKey)), publicKey, sizeof(publicKey));
printKey(key);
context.exitInfo("*** Don't forget to back up the keyring! ***");
}
Expand Down

0 comments on commit 6d4ed35

Please sign in to comment.