Skip to content

read command doesn't allow to read secrets if they are uppercase #658

Description

@colonnac

Hello guys,

read command like this

chamber read staging/eu-west-1/my_service DATABASE_URL

will fail due to this bug: https://github.com/segmentio/chamber/blob/master/cmd/read.go#L39-L42

The code always forces the key to be lower case.

I propose to remove that normalization. This will extend the functionality. That is it allows you to run both:

chamber read staging/eu-west-1/my_service DATABASE_URL
chamber read staging/eu-west-1/my_service database_url

There's no need to add a flag or nothing. You have for free the new feature just removing that normalization.

Chamber if importing secrets with import command will allow you to create uppercase secrets but you have no way to read them.

Thanks

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