Extend DEV M10 grant lifetime to four hours
Foundation / checks (checks) (push) Successful in 32m12s
Foundation / checks (client) (push) Failing after 10m0s
Foundation / checks (deploy) (push) Successful in 3m19s
Foundation / checks (ecs) (push) Successful in 1m56s
Foundation / checks (network) (push) Successful in 13m21s
Foundation / checks (postgres) (push) Successful in 44m18s
Foundation / checks (tsan) (push) Successful in 7m58s
Foundation / postgres-tools (push) Skipped
Foundation / image (push) Skipped
Foundation / server-image (push) Skipped
Foundation / checks (checks) (push) Successful in 32m12s
Foundation / checks (client) (push) Failing after 10m0s
Foundation / checks (deploy) (push) Successful in 3m19s
Foundation / checks (ecs) (push) Successful in 1m56s
Foundation / checks (network) (push) Successful in 13m21s
Foundation / checks (postgres) (push) Successful in 44m18s
Foundation / checks (tsan) (push) Successful in 7m58s
Foundation / postgres-tools (push) Skipped
Foundation / image (push) Skipped
Foundation / server-image (push) Skipped
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
// already contain them). server.key and grant.key are secrets (owner-only on POSIX):
|
||||
// they belong in the dev namespace Secret, never in images, logs or the repository.
|
||||
// evo-dev-session grants --environment dev --key FILE --world N --frame N --region N
|
||||
// --subject N --out FILE [--count 1..64] [--lifetime 60..3600]
|
||||
// --subject N --out FILE [--count 1..64] [--lifetime 60..14400]
|
||||
// Writes COUNT single-use 108-byte grants for one test subject. Clients consume one
|
||||
// per connection; the HMAC key itself never leaves the operator machine.
|
||||
// evo-dev-session probe --connect HOST:PORT --server-name NAME --ca FILE --grants FILE
|
||||
@@ -133,10 +133,10 @@ int grants(const Args& a) {
|
||||
const auto region = number(a.get("--region").value_or(""));
|
||||
const auto subject = number(a.get("--subject").value_or(""));
|
||||
const auto count = number(a.get("--count").value_or("16"));
|
||||
const auto lifetime = number(a.get("--lifetime").value_or("3600"));
|
||||
const auto lifetime = number(a.get("--lifetime").value_or("14400"));
|
||||
if (a.get("--environment") != "dev" || !key_path || !out || !world || !frame || !region ||
|
||||
!subject || !count || *count == 0 || *count > 64 || !lifetime || *lifetime < 60 ||
|
||||
*lifetime > 3600)
|
||||
*lifetime > 14400)
|
||||
return 2;
|
||||
std::ifstream file{std::string{*key_path}};
|
||||
const std::string text{std::istreambuf_iterator<char>{file}, std::istreambuf_iterator<char>{}};
|
||||
|
||||
Reference in New Issue
Block a user