|
23 | 23 | } |
24 | 24 | } |
25 | 25 | }, |
26 | | - "RESTAPI_TABLE_WITH_VALID_CONFIG": { |
| 26 | + "RESTAPI_TABLE_WITH_INCORRECT_WILDCARD_CLIENT_1": { |
| 27 | + "sonic-restapi:sonic-restapi": { |
| 28 | + "sonic-restapi:RESTAPI": { |
| 29 | + "certs": { |
| 30 | + "ca_crt": "/etc/sonic/credentials/ame_root.pem", |
| 31 | + "server_crt": "/etc/sonic/credentials/restapiserver.crt", |
| 32 | + "server_key": "/etc/sonic/credentials/restapiserver.key", |
| 33 | + "client_crt_cname": "*client.sonic.net" |
| 34 | + } |
| 35 | + } |
| 36 | + } |
| 37 | + }, |
| 38 | + "RESTAPI_TABLE_WITH_INCORRECT_WILDCARD_CLIENT_2": { |
| 39 | + "sonic-restapi:sonic-restapi": { |
| 40 | + "sonic-restapi:RESTAPI": { |
| 41 | + "certs": { |
| 42 | + "ca_crt": "/etc/sonic/credentials/ame_root.pem", |
| 43 | + "server_crt": "/etc/sonic/credentials/restapiserver.crt", |
| 44 | + "server_key": "/etc/sonic/credentials/restapiserver.key", |
| 45 | + "client_crt_cname": "*.*.client.sonic.net" |
| 46 | + } |
| 47 | + } |
| 48 | + } |
| 49 | + }, |
| 50 | + "RESTAPI_TABLE_WITH_INCORRECT_WILDCARD_CLIENT_3": { |
| 51 | + "sonic-restapi:sonic-restapi": { |
| 52 | + "sonic-restapi:RESTAPI": { |
| 53 | + "certs": { |
| 54 | + "ca_crt": "/etc/sonic/credentials/ame_root.pem", |
| 55 | + "server_crt": "/etc/sonic/credentials/restapiserver.crt", |
| 56 | + "server_key": "/etc/sonic/credentials/restapiserver.key", |
| 57 | + "client_crt_cname": "client.*.sonic.net" |
| 58 | + } |
| 59 | + } |
| 60 | + } |
| 61 | + }, |
| 62 | + "RESTAPI_TABLE_WITH_INCORRECT_WILDCARD_CLIENT_4": { |
| 63 | + "sonic-restapi:sonic-restapi": { |
| 64 | + "sonic-restapi:RESTAPI": { |
| 65 | + "certs": { |
| 66 | + "ca_crt": "/etc/sonic/credentials/ame_root.pem", |
| 67 | + "server_crt": "/etc/sonic/credentials/restapiserver.crt", |
| 68 | + "server_key": "/etc/sonic/credentials/restapiserver.key", |
| 69 | + "client_crt_cname": "client.sonic.net.*" |
| 70 | + } |
| 71 | + } |
| 72 | + } |
| 73 | + }, |
| 74 | + "RESTAPI_TABLE_WITH_INCORRECT_WILDCARD_CLIENT_5": { |
| 75 | + "sonic-restapi:sonic-restapi": { |
| 76 | + "sonic-restapi:RESTAPI": { |
| 77 | + "certs": { |
| 78 | + "ca_crt": "/etc/sonic/credentials/ame_root.pem", |
| 79 | + "server_crt": "/etc/sonic/credentials/restapiserver.crt", |
| 80 | + "server_key": "/etc/sonic/credentials/restapiserver.key", |
| 81 | + "client_crt_cname": "cli*ent.sonic.net" |
| 82 | + } |
| 83 | + } |
| 84 | + } |
| 85 | + }, |
| 86 | + "RESTAPI_TABLE_WITH_VALID_CONFIG_1": { |
27 | 87 | "sonic-restapi:sonic-restapi": { |
28 | 88 | "sonic-restapi:RESTAPI": { |
29 | 89 | "certs": { |
|
35 | 95 | } |
36 | 96 | } |
37 | 97 | }, |
38 | | - "RESTAPI_TABLE_WITH_MULTIPLE_CERTS": { |
| 98 | + "RESTAPI_TABLE_WITH_VALID_CONFIG_2": { |
| 99 | + "sonic-restapi:sonic-restapi": { |
| 100 | + "sonic-restapi:RESTAPI": { |
| 101 | + "certs": { |
| 102 | + "ca_crt": "/etc/sonic/credentials/ame_root.pem", |
| 103 | + "server_crt": "/etc/sonic/credentials/restapiserver.crt", |
| 104 | + "server_key": "/etc/sonic/credentials/restapiserver.key", |
| 105 | + "client_crt_cname": "*.client.sonic.net" |
| 106 | + } |
| 107 | + } |
| 108 | + } |
| 109 | + }, |
| 110 | + "RESTAPI_TABLE_WITH_VALID_CONFIG_3": { |
| 111 | + "sonic-restapi:sonic-restapi": { |
| 112 | + "sonic-restapi:RESTAPI": { |
| 113 | + "certs": { |
| 114 | + "ca_crt": "/etc/sonic/credentials/ame_root.pem", |
| 115 | + "server_crt": "/etc/sonic/credentials/restapiserver.crt", |
| 116 | + "server_key": "/etc/sonic/credentials/restapiserver.key", |
| 117 | + "client_crt_cname": "*.net" |
| 118 | + } |
| 119 | + } |
| 120 | + } |
| 121 | + }, |
| 122 | + "RESTAPI_TABLE_WITH_MULTIPLE_CERTS_1": { |
39 | 123 | "sonic-restapi:sonic-restapi": { |
40 | 124 | "sonic-restapi:RESTAPI": { |
41 | 125 | "certs": { |
|
46 | 130 | } |
47 | 131 | } |
48 | 132 | } |
| 133 | + }, |
| 134 | + "RESTAPI_TABLE_WITH_MULTIPLE_CERTS_2": { |
| 135 | + "sonic-restapi:sonic-restapi": { |
| 136 | + "sonic-restapi:RESTAPI": { |
| 137 | + "certs": { |
| 138 | + "ca_crt": "/etc/sonic/credentials/ame_root.pem", |
| 139 | + "server_crt": "/etc/sonic/credentials/restapiserver.crt", |
| 140 | + "server_key": "/etc/sonic/credentials/restapiserver.key", |
| 141 | + "client_crt_cname": "*.client.sonic.net,clientds.prod.net" |
| 142 | + } |
| 143 | + } |
| 144 | + } |
| 145 | + }, |
| 146 | + "RESTAPI_TABLE_WITH_MULTIPLE_CERTS_3": { |
| 147 | + "sonic-restapi:sonic-restapi": { |
| 148 | + "sonic-restapi:RESTAPI": { |
| 149 | + "certs": { |
| 150 | + "ca_crt": "/etc/sonic/credentials/ame_root.pem", |
| 151 | + "server_crt": "/etc/sonic/credentials/restapiserver.crt", |
| 152 | + "server_key": "/etc/sonic/credentials/restapiserver.key", |
| 153 | + "client_crt_cname": "client.sonic.net,*.clientds.prod.net" |
| 154 | + } |
| 155 | + } |
| 156 | + } |
| 157 | + }, |
| 158 | + "RESTAPI_TABLE_WITH_MULTIPLE_CERTS_4": { |
| 159 | + "sonic-restapi:sonic-restapi": { |
| 160 | + "sonic-restapi:RESTAPI": { |
| 161 | + "certs": { |
| 162 | + "ca_crt": "/etc/sonic/credentials/ame_root.pem", |
| 163 | + "server_crt": "/etc/sonic/credentials/restapiserver.crt", |
| 164 | + "server_key": "/etc/sonic/credentials/restapiserver.key", |
| 165 | + "client_crt_cname": "*.client.sonic.net,*.com" |
| 166 | + } |
| 167 | + } |
| 168 | + } |
| 169 | + }, |
| 170 | + "RESTAPI_TABLE_WITH_MULTIPLE_CERTS_5": { |
| 171 | + "sonic-restapi:sonic-restapi": { |
| 172 | + "sonic-restapi:RESTAPI": { |
| 173 | + "certs": { |
| 174 | + "ca_crt": "/etc/sonic/credentials/ame_root.pem", |
| 175 | + "server_crt": "/etc/sonic/credentials/restapiserver.crt", |
| 176 | + "server_key": "/etc/sonic/credentials/restapiserver.key", |
| 177 | + "client_crt_cname": "*.client.sonic.net,test.client.sonic.io,*.com" |
| 178 | + } |
| 179 | + } |
| 180 | + } |
49 | 181 | } |
50 | 182 | } |
0 commit comments