Fleet version: <!-- Copy this from the "My account" page in the Fleet UI, or run fleetctl --version -->
4.44
Web browser and operating system:
💥 Actual behavior
When creating a new team with fleetctl apply OR API and specifying a secret that is already in the DB, the secret comes back in plaintext, like:
Error: applying teams: POST /api/latest/fleet/spec/teams received status 409 Validation Failed: Error 1062 (23000): Duplicate entry '/ubD+AZJL/dTqDCABDCEFhLU+zwmI0PR' for key 'PRIMARY'
This is a security issue. For example, if a customer uses GitHub action for configuring Fleet, anyone with access to workflow logs will see the secret.
🧑💻 Steps to reproduce
Get a team spec with fleetctl get teams --yaml
Change the team name and apply it with fleetctl apply
Fleet version: <!-- Copy this from the "My account" page in the Fleet UI, or run
fleetctl --version
--> 4.44 Web browser and operating system:💥 Actual behavior
When creating a new team with
fleetctl apply
OR API and specifying a secret that is already in the DB, the secret comes back in plaintext, like:This is a security issue. For example, if a customer uses GitHub action for configuring Fleet, anyone with access to workflow logs will see the secret.
🧑💻 Steps to reproduce
fleetctl get teams --yaml
fleetctl apply
For example, apply the same secret to two teams:
🕯️ More info (optional)
N/A
🛠️ To fix