)]}'
{
  "commit": "dd719d712e8e73bcf7851ca670cb1b643f9d6d4f",
  "tree": "d5d73a4fe16486ef4a3db3ef05403fe4a531c98f",
  "parents": [
    "4a4ca6b7f9a1ea1304b2f6cc65762c836376d7e2"
  ],
  "author": {
    "name": "Xuanwo",
    "email": "github@xuanwo.io",
    "time": "Wed Nov 25 11:20:57 2026 +0800"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Nov 25 11:20:57 2026 +0800"
  },
  "message": "fix(azure-storage): reject inverted Service SAS start windows (#1060)\n\n## Summary\n\nShared Key Service SAS presigning accepted an explicitly configured `st`\neven when it was equal to or later than the encoded whole-second `se`.\nThis change rejects an empty or inverted encoded window with\n`RequestInvalid` before the request is mutated.\n\nThe check compares the explicit start directly with the already-integral\nwire-second expiry. Because `floor(start) \u003e\u003d expiry` is equivalent to\n`start \u003e\u003d expiry` when `expiry` is integral, this preserves the existing\n`st`/`se` serialization without formatting and reparsing the start. The\nprevious round trip failed on supported negative-year wire timestamps\nsuch as `-0001-...`.\n\n## Preserved behavior\n\n- Valid future starts that remain before expiry are unchanged.\n- Omitted start behavior is unchanged.\n- Fractional start formatting and all existing SAS wire bytes are\nunchanged.\n- Credential, permissions, expiry, and request-validation error ordering\nis unchanged.\n- `#1052` `rscd` handling and `#1059` expiry validation are unchanged.\n- Request URI, headers, method, version, and extensions remain untouched\non rejection.\n- The separate `ServiceSasGranter` ceil-to-wire and future-start policy\nis not changed.\n\n## Tests\n\nLocal synthetic, fixed-clock tests cover:\n\n- equality and inverted positive-year windows;\n- fractional positive-year starts whose encoded second matches expiry;\n- negative-year valid starts preserving wire bytes and independently\nverified signatures;\n- negative-year same-wire-second rejection with the request untouched;\n- omitted, fractional, future-start, offset, and `rscd` behavior through\nexisting and added tests.\n\nThese are local synthetic checks. Hosted Azure positive GETs do not\nexercise invalid-window rejection, and Azure has not validated\nnegative-year timestamps. The local OBS/other provider evidence is\nunchanged.\n\n## References\n\n- [Create a service\nSAS](https://learn.microsoft.com/en-us/rest/api/storageservices/create-service-sas)\n- [Format date/time\nvalues](https://learn.microsoft.com/en-us/rest/api/storageservices/formatting-datetime-values)",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e26e44b1e05254d91696404ff9994c6a74507909",
      "old_mode": 33188,
      "old_path": "services/azure-storage/src/sign_request.rs",
      "new_id": "0f30c87f6c22a6145ff5ac5f22a512c70696ba63",
      "new_mode": 33188,
      "new_path": "services/azure-storage/src/sign_request.rs"
    }
  ]
}
