Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-6726

Auto renew Hashicorp vault periodic service tokens

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Fixed
    • Icon: Minor Minor
    • 7.0.6rc1, 7.2.0beta1
    • 5.2.5, 5.4.1
    • Server (S)
    • None
    • S24-W40/41, S24-W42/43
    • 3

      It is recommended to use periodic service tokens for long-running services
      https://learn.hashicorp.com/tutorials/vault/tokens#periodic-service-tokens

      However, these tokens expire and they need to be renewed periodically. Currently this is possible only outside of Zabbix using periodic cron job or other way. This puts token potentially under risk, because if cron job is used then the token must be stored in plain text file.

      https://learn.hashicorp.com/tutorials/vault/tokens#renew-service-tokens

      This is not a big problem for frontend, because the token is stored in the web configuration anyway.

      However, Zabbix server has possibility to use token from environment variable (which can be destroyed after Zabbix server start).

      Adding possibilty to auto renew the token used by Zabbix server would be nice.
      New Zabbix server configuration parameter could solve this problem, by example

      VaultTokenRenew=1h
      

      The only non-expiring token is the root token, but using root token for a service is bad practice.

            sboidenko Sergejs Boidenko
            kaspars.mednis Kaspars Mednis
            Team A
            Votes:
            21 Vote for this issue
            Watchers:
            25 Start watching this issue

              Created:
              Updated:
              Resolved: