This is an automated email from the ASF dual-hosted git repository.
wave pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-docs.git
The following commit(s) were added to refs/heads/main by this push:
new e40ef47 Improve token policy format
e40ef47 is described below
commit e40ef47744c32691d78b0b980745774995d3bb7b
Author: Dave Fisher <[email protected]>
AuthorDate: Wed Nov 26 13:16:22 2025 -0800
Improve token policy format
---
content/pages/draft-asf-token-standard.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/content/pages/draft-asf-token-standard.md
b/content/pages/draft-asf-token-standard.md
index 652ac44..9160144 100644
--- a/content/pages/draft-asf-token-standard.md
+++ b/content/pages/draft-asf-token-standard.md
@@ -73,6 +73,7 @@ Because the maximum value of a CRC-32, `0xFFFFFFFF`, is
encoded by this specific
## Sample generator code
+```python
def asf_secret_token(component: str) -> str:
import secrets
import zlib
@@ -89,6 +90,7 @@ Because the maximum value of a CRC-32, `0xFFFFFFFF`, is
encoded by this specific
n, rem = divmod(n, 62)
checksum = alphabet[rem] + checksum
return f"asf_{component}_{entropy}{checksum}"
+```
## Sample generated tokens
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]