Skip to content

problem on Windows #1

@jrobbins-LiveData

Description

@jrobbins-LiveData

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

  1. Works under poetry
  2. Is no less "safe" than Windows Credential Manager

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions