1. 26 7月, 2019 1 次提交
  2. 09 9月, 2016 1 次提交
    • J
      conf: Add new secret type "tls" · 13350a17
      John Ferlan 提交于
      Add a new secret usage type known as "tls" - it will handle adding the
      secret objects for various TLS objects that need to provide some sort
      of passphrase in order to access the credentials.
      
      The format is:
      
         <secret ephemeral='no' private='no'>
           <description>Sample TLS secret</description>
           <usage type='tls'>
             <name>mumblyfratz</name>
           </usage>
      </secret>
      
      Once defined and a passphrase set, future patches will allow the UUID
      to be set in the qemu.conf file and thus used as a secret for various
      TLS options such as a chardev serial TCP connection, a NBD client/server
      connection, and migration.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      13350a17
  3. 15 7月, 2016 1 次提交
  4. 02 7月, 2016 1 次提交
    • J
      conf: Add new secret type "passphrase" · c8438010
      John Ferlan 提交于
      Add a new secret type known as "passphrase" - it will handle adding the
      secret objects that need a passphrase without a specific username.
      
      The format is:
      
         <secret ...>
           <uuid>...</uuid>
           ...
           <usage type='passphrase'>
             <name>mumblyfratz</name>
           </usage>
         </secret>
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      c8438010
  5. 17 9月, 2014 1 次提交
  6. 22 3月, 2013 1 次提交
  7. 29 10月, 2011 2 次提交
  8. 11 12月, 2009 1 次提交
  9. 15 9月, 2009 2 次提交
    • D
      Make secrets RNG more strict · 67b2d5e0
      Daniel P. Berrange 提交于
      * docs/schemas/secret.rng: Require volume element to be an absolute
        path. Fix whitespace indentation
      67b2d5e0
    • D
      Fix UUID handling in secrets/storage encryption APIs · 47e7a258
      Daniel P. Berrange 提交于
      Convert all the secret/storage encryption APIs / wire format to
      handle UUIDs in raw format instead of non-canonical printable
      format. Guarentees data format correctness.
      
      * docs/schemas/storageencryption.rng: Make UUID mandatory for a secret
        and validate fully
      * docs/schemas/secret.rng: Fully validate UUID
      * include/libvirt/libvirt.h, include/libvirt/libvirt.h.in, Add
        virSecretLookupByUUID and virSecretGetUUID. Make
        virSecretGetUUIDString follow normal API design pattern
      * python/generator.py: Skip generation of virSecretGetUUID,
        virSecretGetUUIDString and virSecretLookupByUUID
      * python/libvir.c, python/libvirt-python-api.xml: Manual impl
        of virSecretGetUUID,virSecretGetUUIDString and virSecretLookupByUUID
      * qemud/remote.c: s/virSecretLookupByUUIDString/virSecretLookupByUUID/
        Fix get_nonnull_secret/make_nonnull_secret to use unsigned char
      * qemud/remote_protocol.x: Fix remote_nonnull_secret to use a
        remote_uuid instead of remote_nonnull_string for UUID field.
        Rename REMOTE_PROC_SECRET_LOOKUP_BY_UUID_STRING to
        REMOTE_PROC_SECRET_LOOKUP_BY_UUID_STRING and make it take an
        remote_uuid  value
      * qemud/remote_dispatch_args.h, qemud/remote_dispatch_prototypes.h,
        qemud/remote_dispatch_ret.h, qemud/remote_dispatch_table.h,
        qemud/remote_protocol.c, qemud/remote_protocol.h: Re-generate
      * src/datatypes.h, src/datatypes.c: Store UUID in raw format instead
        of printable. Change virGetSecret to use raw format UUID
      * src/driver.h: Rename virDrvSecretLookupByUUIDString to
        virDrvSecretLookupByUUID and use raw format UUID
      * src/libvirt.c: Add virSecretLookupByUUID and virSecretGetUUID
        and re-implement virSecretLookupByUUIDString and
        virSecretGetUUIDString in terms of those
      * src/libvirt_public.syms: Add virSecretLookupByUUID and
        virSecretGetUUID
      * src/remote_internal.c: Rename remoteSecretLookupByUUIDString
        to remoteSecretLookupByUUID. Fix typo in args for
        remoteSecretDefineXML impl. Use raw UUID format for
        get_nonnull_secret and make_nonnull_secret
      * src/storage_encryption_conf.c, src/storage_encryption_conf.h:
        Storage UUID in raw format, and require it to be present in
        XML. Use UUID parser to validate.
      * secret_conf.h, secret_conf.c: Generate a UUID if none is provided.
        Storage UUID in raw format.
      * src/secret_driver.c: Adjust to deal with raw UUIDs. Save secrets
        in a filed with printable UUID, instead of base64 UUID.
      * src/virsh.c: Adjust for changed public API contract of
        virSecretGetUUIDString.
      * src/storage_Backend.c: DOn't undefine secret we just generated
        upon successful volume creation. Fix to handle raw UUIDs. Generate
        a non-clashing UUID
      * src/qemu_driver.c: Change to use lookupByUUID instead of
        lookupByUUIDString
      47e7a258
  10. 10 9月, 2009 1 次提交
    • M
      Add <usage> to <secret> docs · 78811ae5
      Miloslav Trmač 提交于
      * docs/formatsecret.html.in, docs/formatsecret.html: Document <usage
        type='volume'>, replacing stand-alone <volume>.
      * docs/schemas/secret.rng: Update schema to require <usage
        type='volume'>
      78811ae5
  11. 02 9月, 2009 1 次提交
    • M
      Secret manipulation public API · 6acc17af
      Miloslav Trmač 提交于
      This patch adds a "secret" as a separately managed object, using a
      special-purpose API to transfer the secret values between nodes and
      libvirt users.
      
      * docs/schemas/secret.rng, docs/schemas/Makefilem.am: Add new
        schema for virSecret objects
      * docs/*html: Re-generated
      * docs/formatsecret.html.in, docs/sitemap.html.in: Add page
        describing the virSecret XML schema
      * include/libvirt/libvirt.h.in: Define the new virSecret public
        API
      * src/libvirt_public.syms: Export symbols for new public APIs
      * mingw32-libvirt.spec.in, libvirt.spec.in: Add secret.rng to
        files list
      6acc17af