Skip to content

add support for no keyring login - #272

Merged
davixcky merged 2 commits into
mainfrom
add-support-plain-text-creds
Nov 13, 2025
Merged

davixcky merged 2 commits into
mainfrom
add-support-plain-text-creds

Conversation

@davixcky

@davixcky davixcky commented Nov 7, 2025 •

Copy link
Copy Markdown
Contributor
image

Adding --no-keyring to allow users with no keyring to use the app. This is insecure given the token can be acessed by reading ~/.signadot/credentials

@scott-cotton

scott-cotton commented Nov 12, 2025 •

Copy link
Copy Markdown
Member

@davixcky overall looks good (and necessary)

But, when I run with --insecure-storage, I get this

25-11-12 scott@air cli % ./signadot auth login --insecure-storage
Opening browser at:
to authenticate using the code:

✗ Waiting for authentication:
Error: couldn't get device token: 400 Bad Request: deviceCode must be defined
25-11-12 scott@air cli %

and the finder opens up (Mac OS/X)

Also, looks to me like

internal/auth/auth.go should not fall back to plaintext unless --insecure-storage is supplied as an option. Is this falling back w/out the option? If so, can we plumb the option to auth, eg with

func ResolveAuth(opts ...AuthOpts)

?

@scott-cotton

Copy link
Copy Markdown
Member

Also, looks to me like

internal/auth/auth.go should not fall back to plaintext unless --insecure-storage is supplied as an option. Is this falling back w/out the option? If so, can we plumb the option to auth, eg with

func ResolveAuth(opts ...AuthOpts)

?

I guess if we erase plaintext creds or they auto-expire in a short enough time, this could be ok as is.

@foxish

foxish commented Nov 12, 2025 •

Copy link
Copy Markdown
Member

Wondering if another idea to consider is to do pure in-memory storage and allow it to go away once the daemon is terminated. Wdyt?

EDIT: just realized we don't always have the daemon running because local connect may not be run, never mind.

@davixcky

davixcky commented Nov 12, 2025 •

Copy link
Copy Markdown
Contributor Author

25-11-12 scott@air cli % ./signadot auth login --insecure-storage
Opening browser at:
to authenticate using the code:

✗ Waiting for authentication:
Error: couldn't get device token: 400 Bad Request: deviceCode must be defined
25-11-12 scott@air cli %

Are you testing against staging or local api?

and the finder opens up (Mac OS/X)

That's weird, i haven't been able to reproduce. This happens time to time?

internal/auth/auth.go should not fall back to plaintext unless --insecure-storage is supplied as an option. Is this falling back w/out the option? If so, can we plumb the option to auth, eg with

I don't think that's true given that otherwise will make user to use that flag everytime. I tried to mimic the GH behavior which you only specify the first time

@scott-cotton

Copy link
Copy Markdown
Member

Are you testing against staging or local api?

and the finder opens up (Mac OS/X)
That's weird, i haven't been able to reproduce. This happens time to time?

Just took a look and indeed it's only local (and also occurs w/out --insecure-storage)

@scott-cotton scott-cotton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@davixcky
davixcky merged commit ffa95ee into main Nov 13, 2025
@davixcky
davixcky deleted the add-support-plain-text-creds branch November 13, 2025 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants