---
title: "Rules - Sign storage requests with HMAC and automatic UTC dates — Cloud Changelog"
description: "The Rules language supports HMAC signing, Signature Version 4 (SigV4) key derivation, and UTC date formatting. Use these functions in Request Header Trans…"
url: "https://cloudchangelog.com/cloudflare/2026-11-25-sigv4-hmac-date-functions"
updated: "2026-11-26"
---

[Back to feed](https://cloudchangelog.com/feed/2026-W48)

November 25, 2026 · Cloudflare

# Rules - Sign storage requests with HMAC and automatic UTC dates

- [Rules](https://cloudchangelog.com/products/cloudflare/rules)
- [Security, identity and compliance](https://cloudchangelog.com/search?q=security)

## What changed

**Cloudflare Rules:** HMAC, SigV4 signing and UTC date functions for signing private S3 and GCS requests.

The Rules language supports HMAC signing, Signature Version 4 (SigV4) key derivation, and UTC date formatting. Use these functions in Request Header Transform Rules to authenticate reads from private Amazon S3 and Google Cloud Storage buckets.

- `hmac_md5()`, `hmac_sha1()`, `hmac_sha256()`, and `hmac_sha512()` compute raw keyed digests.
- `sign_sigv4_hmac_sha256()` derives the signing key and returns the lowercase hexadecimal signature in one call.
- `format_date()` formats the request timestamp for date headers and credential scopes.
- `encode_hex()` converts raw digests to lowercase hexadecimal text.

For example, set `x-amz-date` or `x-goog-date` dynamically using:

```
format_date(http.request.timestamp.sec, "%Y%m%dT%H%M%SZ")
```

The same rule can build an `Authorization` header from that request timestamp. Callers do not need to supply a date header. You remain responsible for constructing the canonical request and string to sign.

The HMAC and SigV4 signing functions are available on Pro, Business, and Enterprise plans. `format_date()` is available on all plans without an additional entitlement. Use it in URI, request header, and response header rewrite expressions, not rule filters.

For complete expressions and security considerations, refer to [Sign requests to private S3 and GCS buckets](https://developers.cloudflare.com/rules/transform/examples/sign-private-storage-requests/) and the [Rules language function reference](https://developers.cloudflare.com/ruleset-engine/rules-language/functions/).

Get the week’s Cloudflare changes in one email

Your email address

Free, every Monday: only what changed in Cloudflare that week. We email you a link to confirm.

[See last week’s digest](https://cloudchangelog.com/digests/weekly-2026-W47#provider-cloudflare)

Free. Unsubscribe any time.

[Read on developers.cloudflare.com](https://developers.cloudflare.com/changelog/post/2026-11-25-sigv4-hmac-date-functions/)

## Related updates

- Jan 22, 2026

  [Rules - New cryptographic functions — encode\_base64() and sha256()](https://cloudchangelog.com/cloudflare/2026-01-22-sha256-base64-encode-functions)
- Nov 12, 2026

  [Rules - New hash functions — sha1(), md5(), and sha512()](https://cloudchangelog.com/cloudflare/2026-11-12-hash-functions)

[All Rules changes](https://cloudchangelog.com/products/cloudflare/rules)

## Contact

- [YouTube](https://www.youtube.com/@cloudchangelog)
