Skip to content

Don't use String for password parameters #155

@augi

Description

@augi

To lower the potential attack surface, it's recommended not to use String to store sensitive data. So I propose to use CharSequence for password parameters (e.g in GitLabApi.login method). We could use implementation like this. It allows to clear the underlying char array after the sensitive information is not needed.

I'm not creating PR because I'm not sure if the underlying HTTP library is able to handle this. The point is that the CharSequence cannot be converted to String at any time - it would break the concept.

If you point me to the right direction, I'm ready to create a new PR.

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