Skip to content

GET /system/inputs returns encrypted input configuration as ciphertext and salt #27545

Open

Description

@patrickmann

What

GET /system/inputs returns configuration fields marked as encrypted in their stored form, as {"encrypted_value": "...", "salt": "..."}, to any user holding inputs:read. The documented HTTP form is {"is_set": true}.

The value is AES ciphertext encrypted with the cluster password_secret, so this is not a disclosure of the secret itself.

Why it happens

InputServiceImpl.all() is the only Input read that does not apply withEncryptedFields(...). Its siblings paginated, allOfThisNode, allByType, findByIds and find all do. Without that conversion the field stays a raw Mongo sub-document rather than an EncryptedValue, so EncryptedValueSerializer never runs on it.

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

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