Skip to content

When using the secrets API, the API should not save to an OrgID that does not exist #15208

@nisley

Description

@nisley

Kept running into errors while trying to use Flux to retrieve secrets from the secret store.
influxdata/flux#1885

Turns out I sent in the wrong OrgID in:
http://localhost:9999/api/v2/orgs//secrets

I think I used my cloud orgId? At any rate - setting and getting secrets from the API worked flawlessly, but when I tried to use the secrets with secrets.get(), it failed because my session was of course in my org.

The API should not save secrets into an OrgID if that OrgID doesn't exist.

(As an aside, I imagine this could also lead to even more weirdness if by chance a new org is created and some secrets had already been stored in there? )

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions