Skip to contentSkip to conversation

qapi/migration: Add missing tls-authz documentation

PATCH In review [email protected] 2 participants 3 messages Feb 7, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qapi/migration: Add missing tls-authz documentation

From: Peter Xu <[email protected]>

As reported in Markus's recent enforcement series on qapi doc [1], we accidentally miss one entry for tls-authz. Add it. Then we can drop @MigrateSetParameters from documentation-exceptions safely later.

[1] https://lore.kernel.org/r/[email protected]

Cc Daniel P. Berrangé <[email protected]>
Cc Fabiano Rosas <[email protected]>
---
 qapi/migration.json | 4 ++++
 1 file changed, 4 insertions(+)
qapi/migration.json +4 -0
index 819708321d..f4c5f59e01 100644
@@ -980,6 +980,10 @@
 #     2.9) Previously (since 2.7), this was reported by omitting
 #     tls-hostname instead.
 #
+# @tls-authz: ID of the 'authz' object subclass that provides access
+#     control checking of the TLS x509 certificate distinguished name.
+#     (Since 4.0)
+#
 # @max-bandwidth: to set maximum speed for migration.  maximum speed
 #     in bytes per second.  (Since 2.8)
 #
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 21 lines · [email protected] writes:

From: Peter Xu <[email protected]>

As reported in Markus's recent enforcement series on qapi doc [1], we accidentally miss one entry for tls-authz. Add it. Then we can drop @MigrateSetParameters from documentation-exceptions safely later.

[1] https://lore.kernel.org/r/[email protected]

Cc Daniel P. Berrangé <[email protected]>
Cc Fabiano Rosas <[email protected]>
---
 qapi/migration.json | 4 ++++
 1 file changed, 4 insertions(+)
qapi/migration.json +0 -0
index 819708321d..f4c5f59e01 100644

qapi/migration.json line 989

Quoted 10 lines
qapi/migration.json +4 -0
@@ -980,6 +980,10 @@
 #     2.9) Previously (since 2.7), this was reported by omitting
 #     tls-hostname instead.
 #
+# @tls-authz: ID of the 'authz' object subclass that provides access
+#     control checking of the TLS x509 certificate distinguished name.
+#     (Since 4.0)
+#
 # @max-bandwidth: to set maximum speed for migration.  maximum speed
 #     in bytes per second.  (Since 2.8)
 #

I propose I queue this right after [1] with the update to pragma.json squashed in (appended), and the sentence "Then we can drop ... later" dropped.

Thanks for your help!

qapi/pragma.json +0 -1
index 7ac05ccc26..6929ab776e 100644
@@ -69,7 +69,6 @@
         'JSONType',
         'KeyValueKind',
         'MemoryDeviceInfoKind',
-        'MigrateSetParameters',
         'NetClientDriver',
         'ObjectType',
         'PciMemoryRegion',
author
#2 lore raw
Quoted 49 lines · Markus Armbruster
Quoted 21 lines · [email protected] writes:

From: Peter Xu <[email protected]>

As reported in Markus's recent enforcement series on qapi doc [1], we accidentally miss one entry for tls-authz. Add it. Then we can drop @MigrateSetParameters from documentation-exceptions safely later.

[1] https://lore.kernel.org/r/[email protected]

Cc Daniel P. Berrangé <[email protected]>
Cc Fabiano Rosas <[email protected]>
---
 qapi/migration.json | 4 ++++
 1 file changed, 4 insertions(+)
qapi/migration.json +0 -0
index 819708321d..f4c5f59e01 100644

qapi/migration.json line 989

Quoted 10 lines
qapi/migration.json +4 -0
@@ -980,6 +980,10 @@
 #     2.9) Previously (since 2.7), this was reported by omitting
 #     tls-hostname instead.
 #
+# @tls-authz: ID of the 'authz' object subclass that provides access
+#     control checking of the TLS x509 certificate distinguished name.
+#     (Since 4.0)
+#
 # @max-bandwidth: to set maximum speed for migration.  maximum speed
 #     in bytes per second.  (Since 2.8)
 #

I propose I queue this right after [1] with the update to pragma.json squashed in (appended), and the sentence "Then we can drop ... later" dropped.

Thanks for your help!

qapi/pragma.json +0 -0
index 7ac05ccc26..6929ab776e 100644

qapi/pragma.json line 74

Quoted 7 lines
qapi/pragma.json +0 -1
@@ -69,7 +69,6 @@
         'JSONType',
         'KeyValueKind',
         'MemoryDeviceInfoKind',
-        'MigrateSetParameters',
         'NetClientDriver',
         'ObjectType',
         'PciMemoryRegion',

Yes, please.

Or queue this prior to that series, then below diff can be squashed into the other patch; either way works.

Thanks Markus!

Signature · 1 line
Peter Xu