Skip to content

Commit dafa6ed

Browse files
committed
Only show the first 4 characters of the secret
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent 12e6987 commit dafa6ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/frequenz/client/dispatch/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ async def cli(
202202

203203
click.echo(f"Using API URL: {url}", err=True)
204204
click.echo(f"Using API Key: {key}", err=True)
205-
if secret:
206-
click.echo(f"Using API Secret: {secret}", err=True)
205+
if secret and len(secret) > 8:
206+
click.echo(f"Using API Secret: {secret[:4]}{'*' * 8}", err=True)
207207

208208
ctx.obj["client"] = DispatchApiClient(
209209
server_url=url,

0 commit comments

Comments
 (0)