-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Due to an apparent limitation in Windows Credential Manager, the maximum "password" length is 1280 characters. Since poetry uses keyring, and the default keyring backend on Windows is Credential Manager, the command executed by partifact
poetry config http-basic.ld aws <token longer than 1280 characters>
fails with the (initially confusing) error
(1783, 'CredWrite', 'The stub received bad data.')
You can simply reproduce this Windows issue in the Python REPL on Windows:
import keyring
keyring.set_password('foo', 'bar', 'a' * 1280) # works
keyring.set_password('foo', 'bar', 'a' * 1281) # fails
I know it isn't partifact's job to fix Windows, but maybe someone with expertise in keyring could help by showing how to configure an alternative keyring on Windows that both
- Works under
poetry - Is no less "safe" than Windows Credential Manager
Metadata
Metadata
Assignees
Labels
No labels