Skip to content

Removing (all) secrets #19246

Description

@john-behm-bertelsmann

Use Case

Hi, according to the telegraf secrets --help page, the summary says that that "secrets" subcommand is also for removing secrets, which is seemingly not the case, as there are only the following subcommands to the secrets subcommand:

.\telegraf.exe secrets --help    
NAME:
   Telegraf secrets - commands for listing, adding and removing secrets on all known secret stores

USAGE:
   Telegraf secrets [command options]

COMMANDS:
   list     list known secrets and secret stores
   get      retrieves value of given secret from given store
   set      create or modify a secret in the given store
   help, h  Shows a list of commands or help for one command

OPTIONS:
   --help, -h  show help

That feature would be pretty helpful for a clean removal/uninstall of telegraf from a system.
It is indded also possible to write a powershell script doing that with cmdkey, but would still be great quality of life imrovement nonetheless.

Expected behavior

it would be neat to be able to remove secrets by key and to delete --all secrets that you find using the list subcommand given a config file or config directory.

Actual behavior

there is not such remove subcommand, yet.

Additional info

Telegraf 1.39.1 (git: HEAD@9a8b2022)
Windows AMD64

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestRequests for new plugin and for new features to existing plugins

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions