diff options
| author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-11-02 14:55:27 +0200 | 
|---|---|---|
| committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-11-02 12:59:57 +0000 | 
| commit | 46eda54c88ae96ed1f4aaa9ce56c505ed837f3d7 (patch) | |
| tree | 852b802c592919fec3fe66c14dd2f4aaaf8fd7ed /interface-definitions | |
| parent | 738641a6c66d22c09b8c028ee3d8a90527d9701f (diff) | |
| parent | f2ec92a78c4ee2a35e7d071387460fc6ce360740 (diff) | |
| download | vyos-1x-46eda54c88ae96ed1f4aaa9ce56c505ed837f3d7.tar.gz vyos-1x-46eda54c88ae96ed1f4aaa9ce56c505ed837f3d7.zip | |
T4758: Fix conflicts op-mode-standardized
Diffstat (limited to 'interface-definitions')
| -rw-r--r-- | interface-definitions/https.xml.in | 55 | ||||
| -rw-r--r-- | interface-definitions/include/radius-timeout.xml.i | 16 | ||||
| -rw-r--r-- | interface-definitions/include/static/static-route.xml.i | 1 | ||||
| -rw-r--r-- | interface-definitions/include/static/static-route6.xml.i | 1 | ||||
| -rw-r--r-- | interface-definitions/include/version/https-version.xml.i | 2 | ||||
| -rw-r--r-- | interface-definitions/snmp.xml.in | 4 | ||||
| -rw-r--r-- | interface-definitions/ssh.xml.in | 13 | ||||
| -rw-r--r-- | interface-definitions/system-login.xml.in | 28 | ||||
| -rw-r--r-- | interface-definitions/vpn-ipsec.xml.in | 1 | ||||
| -rw-r--r-- | interface-definitions/vpn-openconnect.xml.in | 15 | 
10 files changed, 110 insertions, 26 deletions
| diff --git a/interface-definitions/https.xml.in b/interface-definitions/https.xml.in index d096c4ff1..6adb07598 100644 --- a/interface-definitions/https.xml.in +++ b/interface-definitions/https.xml.in @@ -107,7 +107,7 @@                    <valueless/>                  </properties>                </leafNode> -              <node name="gql"> +              <node name="graphql">                  <properties>                    <help>GraphQL support</help>                  </properties> @@ -118,6 +118,59 @@                        <valueless/>                      </properties>                    </leafNode> +                  <node name="authentication"> +                    <properties> +                      <help>GraphQL authentication</help> +                    </properties> +                    <children> +                      <leafNode name="type"> +                        <properties> +                          <help>Authentication type</help> +                          <completionHelp> +                            <list>key token</list> +                          </completionHelp> +                          <valueHelp> +                            <format>key</format> +                            <description>Use API keys</description> +                          </valueHelp> +                          <valueHelp> +                            <format>token</format> +                            <description>Use JWT token</description> +                          </valueHelp> +                          <constraint> +                            <regex>(key|token)</regex> +                          </constraint> +                        </properties> +                        <defaultValue>key</defaultValue> +                      </leafNode> +                      <leafNode name="expiration"> +                        <properties> +                          <help>Token time to expire in seconds</help> +                          <valueHelp> +                            <format>u32:60-31536000</format> +                            <description>Token lifetime in seconds</description> +                          </valueHelp> +                          <constraint> +                            <validator name="numeric" argument="--range 60-31536000"/> +                          </constraint> +                        </properties> +                        <defaultValue>3600</defaultValue> +                      </leafNode> +                      <leafNode name="secret-length"> +                        <properties> +                          <help>Length of shared secret in bytes</help> +                          <valueHelp> +                            <format>u32:16-65535</format> +                            <description>Byte length of generated shared secret</description> +                          </valueHelp> +                          <constraint> +                            <validator name="numeric" argument="--range 16-65535"/> +                          </constraint> +                        </properties> +                        <defaultValue>32</defaultValue> +                      </leafNode> +                    </children> +                  </node>                  </children>                </node>                <node name="cors"> diff --git a/interface-definitions/include/radius-timeout.xml.i b/interface-definitions/include/radius-timeout.xml.i new file mode 100644 index 000000000..22bb6d312 --- /dev/null +++ b/interface-definitions/include/radius-timeout.xml.i @@ -0,0 +1,16 @@ +<!-- include start from radius-timeout.xml.i --> +<leafNode name="timeout"> +  <properties> +    <help>Session timeout</help> +    <valueHelp> +      <format>u32:1-240</format> +      <description>Session timeout in seconds (default: 2)</description> +    </valueHelp> +    <constraint> +      <validator name="numeric" argument="--range 1-240"/> +    </constraint> +    <constraintErrorMessage>Timeout must be between 1 and 240 seconds</constraintErrorMessage> +  </properties> +  <defaultValue>2</defaultValue> +</leafNode> +<!-- include end --> diff --git a/interface-definitions/include/static/static-route.xml.i b/interface-definitions/include/static/static-route.xml.i index 2de5dc58f..04ee999c7 100644 --- a/interface-definitions/include/static/static-route.xml.i +++ b/interface-definitions/include/static/static-route.xml.i @@ -14,6 +14,7 @@      #include <include/static/static-route-blackhole.xml.i>      #include <include/static/static-route-reject.xml.i>      #include <include/dhcp-interface.xml.i> +    #include <include/generic-description.xml.i>      <tagNode name="interface">        <properties>          <help>Next-hop IPv4 router interface</help> diff --git a/interface-definitions/include/static/static-route6.xml.i b/interface-definitions/include/static/static-route6.xml.i index 35feef41c..6131ac7fe 100644 --- a/interface-definitions/include/static/static-route6.xml.i +++ b/interface-definitions/include/static/static-route6.xml.i @@ -13,6 +13,7 @@    <children>      #include <include/static/static-route-blackhole.xml.i>      #include <include/static/static-route-reject.xml.i> +    #include <include/generic-description.xml.i>      <tagNode name="interface">        <properties>          <help>IPv6 gateway interface name</help> diff --git a/interface-definitions/include/version/https-version.xml.i b/interface-definitions/include/version/https-version.xml.i index 586083649..111076974 100644 --- a/interface-definitions/include/version/https-version.xml.i +++ b/interface-definitions/include/version/https-version.xml.i @@ -1,3 +1,3 @@  <!-- include start from include/version/https-version.xml.i --> -<syntaxVersion component='https' version='3'></syntaxVersion> +<syntaxVersion component='https' version='4'></syntaxVersion>  <!-- include end --> diff --git a/interface-definitions/snmp.xml.in b/interface-definitions/snmp.xml.in index b4f72589e..7ec60b2e7 100644 --- a/interface-definitions/snmp.xml.in +++ b/interface-definitions/snmp.xml.in @@ -13,9 +13,9 @@              <properties>                <help>Community name</help>                <constraint> -                <regex>[a-zA-Z0-9\-_]{1,100}</regex> +                <regex>[a-zA-Z0-9\-_!@*#]{1,100}</regex>                </constraint> -              <constraintErrorMessage>Community string is limited to alphanumerical characters only with a total lenght of 100</constraintErrorMessage> +              <constraintErrorMessage>Community string is limited to alphanumerical characters, !, @, * and # with a total lenght of 100</constraintErrorMessage>              </properties>              <children>                <leafNode name="authorization"> diff --git a/interface-definitions/ssh.xml.in b/interface-definitions/ssh.xml.in index f3c731fe5..2bcce2cf0 100644 --- a/interface-definitions/ssh.xml.in +++ b/interface-definitions/ssh.xml.in @@ -133,6 +133,19 @@                </leafNode>              </children>            </node> +          <leafNode name="hostkey-algorithm"> +            <properties> +              <help>Allowed host key signature algorithms</help> +              <completionHelp> +                <!-- generated by ssh -Q HostKeyAlgorithms | tr '\n' ' ' as this will not change dynamically  --> +                <list>ssh-ed25519 ssh-ed25519-cert-v01@openssh.com sk-ssh-ed25519@openssh.com sk-ssh-ed25519-cert-v01@openssh.com ssh-rsa rsa-sha2-256 rsa-sha2-512 ssh-dss ecdsa-sha2-nistp256 ecdsa-sha2-nistp384 ecdsa-sha2-nistp521 sk-ecdsa-sha2-nistp256@openssh.com webauthn-sk-ecdsa-sha2-nistp256@openssh.com ssh-rsa-cert-v01@openssh.com rsa-sha2-256-cert-v01@openssh.com rsa-sha2-512-cert-v01@openssh.com ssh-dss-cert-v01@openssh.com ecdsa-sha2-nistp256-cert-v01@openssh.com ecdsa-sha2-nistp384-cert-v01@openssh.com ecdsa-sha2-nistp521-cert-v01@openssh.com sk-ecdsa-sha2-nistp256-cert-v01@openssh.com</list> +              </completionHelp> +              <multi/> +              <constraint> +                <regex>(ssh-ed25519|ssh-ed25519-cert-v01@openssh.com|sk-ssh-ed25519@openssh.com|sk-ssh-ed25519-cert-v01@openssh.com|ssh-rsa|rsa-sha2-256|rsa-sha2-512|ssh-dss|ecdsa-sha2-nistp256|ecdsa-sha2-nistp384|ecdsa-sha2-nistp521|sk-ecdsa-sha2-nistp256@openssh.com|webauthn-sk-ecdsa-sha2-nistp256@openssh.com|ssh-rsa-cert-v01@openssh.com|rsa-sha2-256-cert-v01@openssh.com|rsa-sha2-512-cert-v01@openssh.com|ssh-dss-cert-v01@openssh.com|ecdsa-sha2-nistp256-cert-v01@openssh.com|ecdsa-sha2-nistp384-cert-v01@openssh.com|ecdsa-sha2-nistp521-cert-v01@openssh.com|sk-ecdsa-sha2-nistp256-cert-v01@openssh.com)</regex> +              </constraint> +            </properties> +          </leafNode>            <leafNode name="key-exchange">              <properties>                <help>Allowed key exchange (KEX) algorithms</help> diff --git a/interface-definitions/system-login.xml.in b/interface-definitions/system-login.xml.in index def42544a..027d3f587 100644 --- a/interface-definitions/system-login.xml.in +++ b/interface-definitions/system-login.xml.in @@ -127,32 +127,44 @@                        </leafNode>                        <leafNode name="type">                          <properties> -                          <help>Public key type</help> +                          <help>SSH public key type</help>                            <completionHelp> -                            <list>ssh-dss ssh-rsa ecdsa-sha2-nistp256 ecdsa-sha2-nistp384 ecdsa-sha2-nistp521 ssh-ed25519</list> +                            <list>ssh-dss ssh-rsa ecdsa-sha2-nistp256 ecdsa-sha2-nistp384 ecdsa-sha2-nistp521 ssh-ed25519 ecdsa-sk ed25519-sk</list>                            </completionHelp>                            <valueHelp>                              <format>ssh-dss</format> -                            <description/> +                            <description>Digital Signature Algorithm (DSA) key support</description>                            </valueHelp>                            <valueHelp>                              <format>ssh-rsa</format> -                            <description/> +                            <description>Key pair based on RSA algorithm</description>                            </valueHelp>                            <valueHelp>                              <format>ecdsa-sha2-nistp256</format> -                            <description/> +                            <description>Elliptic Curve DSA with NIST P-256 curve</description>                            </valueHelp>                            <valueHelp>                              <format>ecdsa-sha2-nistp384</format> -                            <description/> +                            <description>Elliptic Curve DSA with NIST P-384 curve</description> +                          </valueHelp> +                          <valueHelp> +                            <format>ecdsa-sha2-nistp521</format> +                            <description>Elliptic Curve DSA with NIST P-521 curve</description>                            </valueHelp>                            <valueHelp>                              <format>ssh-ed25519</format> -                            <description/> +                            <description>Edwards-curve DSA with elliptic curve 25519</description> +                          </valueHelp> +                          <valueHelp> +                            <format>ecdsa-sk</format> +                            <description>Elliptic Curve DSA security key</description> +                          </valueHelp> +                          <valueHelp> +                            <format>ed25519-sk</format> +                            <description>Elliptic curve 25519 security key</description>                            </valueHelp>                            <constraint> -                            <regex>(ssh-dss|ssh-rsa|ecdsa-sha2-nistp256|ecdsa-sha2-nistp384|ecdsa-sha2-nistp521|ssh-ed25519)</regex> +                            <regex>(ssh-dss|ssh-rsa|ecdsa-sha2-nistp256|ecdsa-sha2-nistp384|ecdsa-sha2-nistp521|ssh-ed25519|ecdsa-sk|ed25519-sk)</regex>                            </constraint>                          </properties>                        </leafNode> diff --git a/interface-definitions/vpn-ipsec.xml.in b/interface-definitions/vpn-ipsec.xml.in index 4776c53dc..64966b540 100644 --- a/interface-definitions/vpn-ipsec.xml.in +++ b/interface-definitions/vpn-ipsec.xml.in @@ -888,6 +888,7 @@                <node name="radius">                  <children>                    #include <include/radius-nas-identifier.xml.i> +                  #include <include/radius-timeout.xml.i>                    <tagNode name="server">                      <children>                        #include <include/accel-ppp/radius-additions-disable-accounting.xml.i> diff --git a/interface-definitions/vpn-openconnect.xml.in b/interface-definitions/vpn-openconnect.xml.in index 3b3a83bd4..8b60f2e6e 100644 --- a/interface-definitions/vpn-openconnect.xml.in +++ b/interface-definitions/vpn-openconnect.xml.in @@ -140,20 +140,7 @@                #include <include/radius-server-ipv4.xml.i>                <node name="radius">                  <children> -                  <leafNode name="timeout"> -                    <properties> -                      <help>Session timeout</help> -                      <valueHelp> -                        <format>u32:1-240</format> -                        <description>Session timeout in seconds (default: 2)</description> -                      </valueHelp> -                      <constraint> -                        <validator name="numeric" argument="--range 1-240"/> -                      </constraint> -                      <constraintErrorMessage>Timeout must be between 1 and 240 seconds</constraintErrorMessage> -                    </properties> -                    <defaultValue>2</defaultValue> -                  </leafNode> +                  #include <include/radius-timeout.xml.i>                    <leafNode name="groupconfig">                      <properties>                        <help>If the groupconfig option is set, then config-per-user will be overriden, and all configuration will be read from RADIUS.</help> | 
