mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
block: curl: Allow passing cookies via QCryptoSecret
Since cookies can contain sensitive data (session ID, etc ...) it is desired to hide them from the prying eyes of users. Add a possibility to pass them via the secret infrastructure. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1447413 Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Jeff Cody <jcody@redhat.com> Message-id: f4a22cdebdd0bca6a13a43a2a6deead7f2ec4bb3.1493906281.git.pkrempa@redhat.com Signed-off-by: Jeff Cody <jcody@redhat.com>
This commit is contained in:
parent
3a8760664d
commit
327c8ebd70
2 changed files with 33 additions and 3 deletions
|
@ -2813,11 +2813,15 @@
|
|||
# "name1=content1; name2=content2;" as explained by
|
||||
# CURLOPT_COOKIE(3). Defaults to no cookies.
|
||||
#
|
||||
# @cookie-secret: ID of a QCryptoSecret object providing the cookie data in a
|
||||
# secure way. See @cookie for the format. (since 2.10)
|
||||
#
|
||||
# Since: 2.9
|
||||
##
|
||||
{ 'struct': 'BlockdevOptionsCurlHttp',
|
||||
'base': 'BlockdevOptionsCurlBase',
|
||||
'data': { '*cookie': 'str' } }
|
||||
'data': { '*cookie': 'str',
|
||||
'*cookie-secret': 'str'} }
|
||||
|
||||
##
|
||||
# @BlockdevOptionsCurlHttps:
|
||||
|
@ -2832,12 +2836,16 @@
|
|||
# @sslverify: Whether to verify the SSL certificate's validity (defaults to
|
||||
# true)
|
||||
#
|
||||
# @cookie-secret: ID of a QCryptoSecret object providing the cookie data in a
|
||||
# secure way. See @cookie for the format. (since 2.10)
|
||||
#
|
||||
# Since: 2.9
|
||||
##
|
||||
{ 'struct': 'BlockdevOptionsCurlHttps',
|
||||
'base': 'BlockdevOptionsCurlBase',
|
||||
'data': { '*cookie': 'str',
|
||||
'*sslverify': 'bool' } }
|
||||
'*sslverify': 'bool',
|
||||
'*cookie-secret': 'str'} }
|
||||
|
||||
##
|
||||
# @BlockdevOptionsCurlFtp:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue