From 5363e6d9a53146333da0d109aae170befc1b9481 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Tue, 12 Feb 2013 07:48:33 -0500 Subject: Added client ACLs: * IP and CIDR-based ACLs * Metadata (group/hostname)-based ACLs * Documentation * Unit tests --- schemas/acl-ip.xsd | 56 ++++++++++++++++++++++++++++++++++ schemas/acl-metadata.xsd | 79 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 135 insertions(+) create mode 100644 schemas/acl-ip.xsd create mode 100644 schemas/acl-metadata.xsd (limited to 'schemas') diff --git a/schemas/acl-ip.xsd b/schemas/acl-ip.xsd new file mode 100644 index 000000000..1d6106c05 --- /dev/null +++ b/schemas/acl-ip.xsd @@ -0,0 +1,56 @@ + + + + Schema for IP-based client ACLs: + :ref:`server-plugins-misc-acl` ``ip.xml`` + + + + + + + + The name of the XML-RPC method to allow or deny. Limited + wildcards are supported. + + + + + + + The IP address to match against. This is an exact match + unless :xml:attribute:`IPACLType:netmask` is defined. If + this is not defined, all addresses match the given rule. + + + + + + + If this is defined, then it is combined with + :xml:attribute:`IPACLType:address` to produce a CIDR range, + which is used for matching instead of exact matching based + only on IP address. This can be either an integer netmask + (e.g., ``netmask="24"``) or a dotted-quad (e.g., + ``netmask="255.255.255.0"``). + + + + + + + + + Top-level tag for describing metadata-based client ACLs. + + + + + + + + + + + + diff --git a/schemas/acl-metadata.xsd b/schemas/acl-metadata.xsd new file mode 100644 index 000000000..7d996fb87 --- /dev/null +++ b/schemas/acl-metadata.xsd @@ -0,0 +1,79 @@ + + + + Schema for metadata-based client ACLs: + :ref:`server-plugins-misc-acl` ``metadata.xml`` + + + + + + + + + An **MetadataACLGroupType** is a tag used to provide logic. + Child entries of a MetadataACLGroupType tag only apply to + machines that match the condition specified -- either + membership in a group, or a matching client name. + :xml:attribute:`MetadataACLGroupType:negate` can be set to + negate the sense of the match. + + + + + + + The name of the client or group to match on. Child entries + will only apply to this client or group (unless + :xml:attribute:`MetadataACLGroupType:negate` is set). + + + + + + + Negate the sense of the match, so that child entries only + apply to a client if it is not a member of the given group + or does not have the given name. + + + + + + + + + + + The name of the XML-RPC method to allow or deny. Limited + wildcards are supported. + + + + + + + + + + Top-level tag for describing metadata-based client ACLs. + + + + + + + + + + + + + + + + + + -- cgit v1.2.3-1-g7c22