Skip to content

Conductor-csharp PutSecret adds extra quotes to secret values #152

Description

@adepezaOrkes

using conductor-csharp (SecretResourceApi.PutSecret / PutSecretWithHttpInfo) and secrets are stored with extra quotes (e.g., VERY SECRET becomes "VERY SECRET"), which makes them unusable for authentication.
In decompiled code, this line is used:
obj = ((body == null || !(body.GetType() != typeof(byte[]))) ? body : Configuration.ApiClient.Serialize(body));
For any non-null input, body is typed as string, so:
• body == null is false
• body.GetType() != typeof(byte[ ]) is true
• !(true) is false
• condition becomes false || false => false
So it always takes the Serialize(body) branch for string, which appears to force quote-wrapping.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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