Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-26324

HTTP agent does not resolve secret macro for HTTP authentication Basic

XMLWordPrintable

    • Sprint candidates
    • 0.125

      Create HTTP agent item with HTTP authentication Basic while User name and Password is using macro:

      Configure macro as secret:

      The log level 5 will indicate UNKNOWN:

      1095572:20250416:070802.056 In substitute_simple_macros_impl() data:'{$USER}'
      1095572:20250416:070802.056 In um_cache_resolve() macro:'{$USER}'
      1095572:20250416:070802.056 End of um_cache_resolve(): dedicatedUser
      1095572:20250416:070802.056 End substitute_simple_macros_impl() data:'dedicatedUser'
      1095572:20250416:070802.056 In substitute_simple_macros_impl() data:'{$PASS}'
      1095572:20250416:070802.056 In um_cache_resolve() macro:'{$PASS}'
      1095572:20250416:070802.056 End of um_cache_resolve(): *UNKNOWN*
      1095572:20250416:070802.056 End substitute_simple_macros_impl() data:'secretPassword'
      1095572:20250416:070802.056 End of zbx_prepare_items()
      

      While the password is in plain text the log looks:

      1095572:20250416:070701.055 In substitute_simple_macros_impl() data:'{$USER}'
      1095572:20250416:070701.055 In um_cache_resolve() macro:'{$USER}'
      1095572:20250416:070701.055 End of um_cache_resolve(): dedicatedUser
      1095572:20250416:070701.055 End substitute_simple_macros_impl() data:'dedicatedUser'
      1095572:20250416:070701.055 In substitute_simple_macros_impl() data:'{$PASS}'
      1095572:20250416:070701.055 In um_cache_resolve() macro:'{$PASS}'
      1095572:20250416:070701.055 End of um_cache_resolve(): secretPassword
      1095572:20250416:070701.055 End substitute_simple_macros_impl() data:'secretPassword'
      1095572:20250416:070701.055 End of zbx_prepare_items()
      

       

        1. image-2025-04-16-07-11-56-233.png
          34 kB
          Aigars Kadikis
        2. image-2025-04-16-07-13-04-713.png
          10 kB
          Aigars Kadikis
        3. HTTP authentication Basic test.yaml
          0.7 kB
          Aigars Kadikis

            rtrizna Romans Trizna
            aigars.kadikis Aigars Kadikis
            Team C
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: