Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ops/_private/harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -2914,7 +2914,7 @@ def secret_set(

@classmethod
def _generate_secret_id(cls) -> str:
# Not a proper Juju secrets-style xid, but that's okay
# Not a proper Juju secrets identifier, but that's okay
return f'secret:{uuid.uuid4()}'

def secret_add(
Expand Down
3 changes: 1 addition & 2 deletions ops/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1391,8 +1391,7 @@ def id(self) -> str | None:
def unique_identifier(self) -> str | None:
"""Unique identifier of this secret.

This is the secret's globally-unique identifier (currently a
20-character Xid, for example "9m4e2mr0ui3e8a215n4g").
This is the secret's globally-unique identifier (alphanumeric).

Charms should use :attr:`id` (the secret's locator ID) to send
the secret's ID across relation data, and labels (:attr:`label`) to
Expand Down