diff --git a/changelog/34.fixed.md b/changelog/34.fixed.md new file mode 100644 index 00000000..dbfbf187 --- /dev/null +++ b/changelog/34.fixed.md @@ -0,0 +1 @@ +Fixed verify parameter for unwrap requests diff --git a/src/saltext/vault/utils/vault/client.py b/src/saltext/vault/utils/vault/client.py index 6cfffbbd..64b4047b 100644 --- a/src/saltext/vault/utils/vault/client.py +++ b/src/saltext/vault/utils/vault/client.py @@ -240,7 +240,9 @@ def unwrap(self, wrapped, expected_creation_path=None): headers["X-Vault-Token"] = str(wrapped) else: payload["token"] = str(wrapped) - res = self.session.request("POST", url, headers=headers, json=payload) + res = self.session.request( + "POST", url, headers=headers, json=payload, verify=self._requests_verify + ) if not res.ok: self._raise_status(res) return res.json()