Skip to content

Commit dcf83da

Browse files
authored
provide better snippet for secret token generation (#1576)
While the previous snippet wasn't necessarily bad, it used uuid4 for something it isn't intended to. Python 3 provides a cryptographically secure token generator, so let's tell our users to use that instead.
1 parent 212e2a6 commit dcf83da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/configuration.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ An example to generate a secure secret token is:
341341

342342
[source,bash]
343343
----
344-
python -c "import uuid; print(str(uuid.uuid4()))"
344+
python -c "import secrets; print(secrets.token_urlsafe(32))"
345345
----
346346

347347
WARNING: Secret tokens only provide any security if your APM Server uses TLS.

0 commit comments

Comments
 (0)