Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-21154

camel-hashicorp-vault: Potential NPE in getSecret operation result handling

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.4.4, 4.8.0
    • camel-hashicorp-vault
    • None
    • Unknown

    Description

      It can happen that the REST invocation for fetching secrets returns a 404. Internally, spring-vault will return null from VaultTemplate.read.

      This is not handled in HashicorpVaultProducer, so an NPE is thrown when the secret data is attempted to be extracted from the VaultResponse object.

      Attachments

        Issue Links

          Activity

            People

              jamesnetherton James Netherton
              jamesnetherton James Netherton
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: