forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cluster restart for security on basic (elastic#42414)
This performs a simple restart test to move a basic licensed cluster from no security (the default) to security & transport TLS enabled. Backport of: elastic#41933
- Loading branch information
Showing
8 changed files
with
370 additions
and
0 deletions.
There are no files selected for viewing
68 changes: 68 additions & 0 deletions
68
x-pack/plugin/security/qa/basic-enable-security/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import org.elasticsearch.gradle.test.RestIntegTestTask | ||
|
||
apply plugin: 'elasticsearch.standalone-rest-test' | ||
apply plugin: 'elasticsearch.rest-test' | ||
|
||
dependencies { | ||
// "org.elasticsearch.plugin:x-pack-core:${version}" doesn't work with idea because the testArtifacts are also here | ||
testCompile project(path: xpackModule('core'), configuration: 'default') | ||
testCompile project(path: xpackModule('security'), configuration: 'testArtifacts') | ||
testCompile project(path: xpackModule('core'), configuration: 'testArtifacts') | ||
} | ||
|
||
task integTestNoSecurity(type: RestIntegTestTask) { | ||
description = "Run tests against a cluster that doesn't have security" | ||
} | ||
tasks.getByName("integTestNoSecurityRunner").configure { | ||
systemProperty 'tests.has_security', 'false' | ||
} | ||
check.dependsOn(integTestNoSecurity) | ||
|
||
task integTestSecurity(type: RestIntegTestTask) { | ||
dependsOn integTestNoSecurity | ||
description = "Run tests against a cluster that has security" | ||
} | ||
tasks.getByName("integTestSecurityRunner").configure { | ||
systemProperty 'tests.has_security', 'true' | ||
} | ||
check.dependsOn(integTestSecurity) | ||
|
||
configure(extensions.findByName("integTestNoSecurityCluster")) { | ||
clusterName = "enable-security-on-basic" | ||
numNodes = 2 | ||
|
||
setting 'xpack.ilm.enabled', 'false' | ||
setting 'xpack.ml.enabled', 'false' | ||
setting 'xpack.license.self_generated.type', 'basic' | ||
setting 'xpack.security.enabled', 'false' | ||
} | ||
|
||
Task noSecurityTest = tasks.findByName("integTestNoSecurity") | ||
configure(extensions.findByName("integTestSecurityCluster")) { | ||
clusterName = "basic-license" | ||
numNodes = 2 | ||
dataDir = { nodeNum -> noSecurityTest.nodes[nodeNum].dataDir } | ||
|
||
setting 'xpack.ilm.enabled', 'false' | ||
setting 'xpack.ml.enabled', 'false' | ||
setting 'xpack.license.self_generated.type', 'basic' | ||
setting 'xpack.security.enabled', 'true' | ||
setting 'xpack.security.authc.anonymous.roles', 'anonymous' | ||
setting 'xpack.security.transport.ssl.enabled', 'true' | ||
setting 'xpack.security.transport.ssl.certificate', 'transport.crt' | ||
setting 'xpack.security.transport.ssl.key', 'transport.key' | ||
setting 'xpack.security.transport.ssl.key_passphrase', 'transport-password' | ||
setting 'xpack.security.transport.ssl.certificate_authorities', 'ca.crt' | ||
|
||
extraConfigFile 'transport.key', project.projectDir.toPath().resolve('src/test/resources/ssl/transport.key').toFile() | ||
extraConfigFile 'transport.crt', project.projectDir.toPath().resolve('src/test/resources/ssl/transport.crt').toFile() | ||
extraConfigFile 'ca.crt', project.projectDir.toPath().resolve('src/test/resources/ssl/ca.crt').toFile() | ||
|
||
setupCommand 'setupAdminUser', | ||
'bin/elasticsearch-users', 'useradd', 'admin_user', '-p', 'admin-password', '-r', 'superuser' | ||
setupCommand 'setupTestUser' , | ||
'bin/elasticsearch-users', 'useradd', 'security_test_user', '-p', 'security-test-password', '-r', 'security_test_role' | ||
extraConfigFile 'roles.yml', project.projectDir.toPath().resolve('src/test/resources/roles.yml').toFile() | ||
} | ||
|
||
integTest.enabled = false |
156 changes: 156 additions & 0 deletions
156
...curity/src/test/java/org/elasticsearch/xpack/security/EnableSecurityOnBasicLicenseIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
package org.elasticsearch.xpack.security; | ||
|
||
import org.apache.http.util.EntityUtils; | ||
import org.elasticsearch.client.Request; | ||
import org.elasticsearch.client.Response; | ||
import org.elasticsearch.client.ResponseException; | ||
import org.elasticsearch.common.Booleans; | ||
import org.elasticsearch.common.settings.SecureString; | ||
import org.elasticsearch.common.settings.Settings; | ||
import org.elasticsearch.common.util.concurrent.ThreadContext; | ||
import org.elasticsearch.test.rest.ESRestTestCase; | ||
import org.elasticsearch.test.rest.yaml.ObjectPath; | ||
import org.elasticsearch.xpack.security.authc.InternalRealms; | ||
import org.junit.BeforeClass; | ||
|
||
import java.io.IOException; | ||
import java.util.Arrays; | ||
import java.util.Locale; | ||
import java.util.Map; | ||
|
||
import static org.elasticsearch.xpack.core.security.authc.support.UsernamePasswordToken.basicAuthHeaderValue; | ||
import static org.hamcrest.Matchers.contains; | ||
import static org.hamcrest.Matchers.containsString; | ||
import static org.hamcrest.Matchers.equalTo; | ||
import static org.hamcrest.Matchers.notNullValue; | ||
|
||
public class EnableSecurityOnBasicLicenseIT extends ESRestTestCase { | ||
|
||
private static boolean securityEnabled; | ||
|
||
@BeforeClass | ||
public static void checkTestMode() { | ||
final String hasSecurity = System.getProperty("tests.has_security"); | ||
securityEnabled = Booleans.parseBoolean(hasSecurity); | ||
} | ||
|
||
@Override | ||
protected Settings restAdminSettings() { | ||
String token = basicAuthHeaderValue("admin_user", new SecureString("admin-password".toCharArray())); | ||
return Settings.builder() | ||
.put(ThreadContext.PREFIX + ".Authorization", token) | ||
.build(); | ||
} | ||
|
||
@Override | ||
protected Settings restClientSettings() { | ||
String token = basicAuthHeaderValue("security_test_user", new SecureString("security-test-password".toCharArray())); | ||
return Settings.builder() | ||
.put(ThreadContext.PREFIX + ".Authorization", token) | ||
.build(); | ||
} | ||
|
||
@Override | ||
protected boolean preserveClusterUponCompletion() { | ||
// If this is the first run (security not yet enabled), then don't clean up afterwards because we want to test restart with data | ||
return securityEnabled == false; | ||
} | ||
|
||
public void testSecuritySetup() throws Exception { | ||
logger.info("Security status: {}", securityEnabled); | ||
logger.info("Cluster:\n{}", getClusterInfo()); | ||
logger.info("Indices:\n{}", getIndices()); | ||
checkBasicLicenseType(); | ||
|
||
checkSecurityStatus(securityEnabled); | ||
if (securityEnabled) { | ||
checkAuthentication(); | ||
} | ||
|
||
checkAllowedWrite("index_allowed"); | ||
// Security runs second, and should see the doc from the first (non-security) run | ||
final int expectedIndexCount = securityEnabled ? 2 : 1; | ||
checkIndexCount("index_allowed", expectedIndexCount); | ||
|
||
final String otherIndex = "index_" + randomAlphaOfLengthBetween(2, 6).toLowerCase(Locale.ROOT); | ||
if (securityEnabled) { | ||
checkDeniedWrite(otherIndex); | ||
} else { | ||
checkAllowedWrite(otherIndex); | ||
} | ||
} | ||
|
||
private String getClusterInfo() throws IOException { | ||
Map<String, Object> info = getAsMap("/"); | ||
assertThat(info, notNullValue()); | ||
return info.toString(); | ||
} | ||
|
||
private String getIndices() throws IOException { | ||
final Request request = new Request("GET", "/_cat/indices"); | ||
Response response = client().performRequest(request); | ||
return EntityUtils.toString(response.getEntity()); | ||
} | ||
|
||
private void checkBasicLicenseType() throws IOException { | ||
Map<String, Object> license = getAsMap("/_license"); | ||
assertThat(license, notNullValue()); | ||
assertThat(ObjectPath.evaluate(license, "license.type"), equalTo("basic")); | ||
} | ||
|
||
private void checkSecurityStatus(boolean expectEnabled) throws IOException { | ||
Map<String, Object> usage = getAsMap("/_xpack/usage"); | ||
assertThat(usage, notNullValue()); | ||
assertThat(ObjectPath.evaluate(usage, "security.available"), equalTo(true)); | ||
assertThat(ObjectPath.evaluate(usage, "security.enabled"), equalTo(expectEnabled)); | ||
if (expectEnabled) { | ||
for (String realm : Arrays.asList("file", "native")) { | ||
assertThat(ObjectPath.evaluate(usage, "security.realms." + realm + ".available"), equalTo(true)); | ||
assertThat(ObjectPath.evaluate(usage, "security.realms." + realm + ".enabled"), equalTo(true)); | ||
} | ||
for (String realm : InternalRealms.getConfigurableRealmsTypes()) { | ||
if (realm.equals("file") == false && realm.equals("native") == false) { | ||
assertThat(ObjectPath.evaluate(usage, "security.realms." + realm + ".available"), equalTo(false)); | ||
assertThat(ObjectPath.evaluate(usage, "security.realms." + realm + ".enabled"), equalTo(false)); | ||
} | ||
} | ||
} | ||
} | ||
|
||
private void checkAuthentication() throws IOException { | ||
final Map<String, Object> auth = getAsMap("/_security/_authenticate"); | ||
// From file realm, configured in build.gradle | ||
assertThat(ObjectPath.evaluate(auth, "username"), equalTo("security_test_user")); | ||
assertThat(ObjectPath.evaluate(auth, "roles"), contains("security_test_role")); | ||
} | ||
|
||
private void checkAllowedWrite(String indexName) throws IOException { | ||
final Request request = new Request("POST", "/" + indexName + "/_doc"); | ||
request.setJsonEntity("{ \"key\" : \"value\" }"); | ||
Response response = client().performRequest(request); | ||
final Map<String, Object> result = entityAsMap(response); | ||
assertThat(ObjectPath.evaluate(result, "_index"), equalTo(indexName)); | ||
assertThat(ObjectPath.evaluate(result, "result"), equalTo("created")); | ||
} | ||
|
||
private void checkDeniedWrite(String indexName) { | ||
final Request request = new Request("POST", "/" + indexName + "/_doc"); | ||
request.setJsonEntity("{ \"key\" : \"value\" }"); | ||
ResponseException e = expectThrows(ResponseException.class, () -> client().performRequest(request)); | ||
assertThat(e.getResponse().getStatusLine().getStatusCode(), equalTo(403)); | ||
assertThat(e.getMessage(), containsString("unauthorized for user [security_test_user]")); | ||
} | ||
|
||
private void checkIndexCount(String indexName, int expectedCount) throws IOException { | ||
final Request request = new Request("POST", "/" + indexName + "/_refresh"); | ||
adminClient().performRequest(request); | ||
|
||
final Map<String, Object> result = getAsMap("/" + indexName + "/_count"); | ||
assertThat(ObjectPath.evaluate(result, "count"), equalTo(expectedCount)); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
x-pack/plugin/security/qa/basic-enable-security/src/test/resources/roles.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# A basic role that is used to test security | ||
security_test_role: | ||
cluster: | ||
- monitor | ||
- "cluster:admin/xpack/license/*" | ||
indices: | ||
- names: [ "index_allowed" ] | ||
privileges: [ "read", "write", "create_index" ] | ||
- names: [ "*" ] | ||
privileges: [ "monitor" ] | ||
|
||
anonymous: | ||
cluster: | ||
- monitor |
30 changes: 30 additions & 0 deletions
30
...plugin/security/qa/basic-enable-security/src/test/resources/ssl/README.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
= Keystore Details | ||
|
||
This document details the steps used to create the certificate and keystore files in this directory. | ||
|
||
== Instructions on generating certificates | ||
The certificates in this directory have been generated using elasticsearch-certutil (7.0.0 SNAPSHOT) | ||
|
||
[source,shell] | ||
----------------------------------------------------------------------------------------------------------- | ||
elasticsearch-certutil ca --pem --out=ca.zip --pass="ca-password" --days=3500 | ||
unzip ca.zip | ||
mv ca/ca.* ./ | ||
rm ca.zip | ||
rmdir ca | ||
----------------------------------------------------------------------------------------------------------- | ||
|
||
[source,shell] | ||
----------------------------------------------------------------------------------------------------------- | ||
elasticsearch-certutil cert --pem --name=transport --out=transport.zip --pass="transport-password" --days=3500 \ | ||
--ca-cert=ca.crt --ca-key=ca.key --ca-pass="ca-password" \ | ||
--dns=localhost --dns=localhost.localdomain --dns=localhost4 --dns=localhost4.localdomain4 --dns=localhost6 --dns=localhost6.localdomain6 \ | ||
--ip=127.0.0.1 --ip=0:0:0:0:0:0:0:1 | ||
unzip transport.zip | ||
mv transport/transport.* ./ | ||
rm transport.zip | ||
rmdir transport | ||
----------------------------------------------------------------------------------------------------------- |
20 changes: 20 additions & 0 deletions
20
x-pack/plugin/security/qa/basic-enable-security/src/test/resources/ssl/ca.crt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIDSjCCAjKgAwIBAgIVAL0RCyWTbBDd2ntuWoqRwW0IE9+9MA0GCSqGSIb3DQEB | ||
CwUAMDQxMjAwBgNVBAMTKUVsYXN0aWMgQ2VydGlmaWNhdGUgVG9vbCBBdXRvZ2Vu | ||
ZXJhdGVkIENBMB4XDTE5MDQzMDAzNTQwN1oXDTI4MTEyODAzNTQwN1owNDEyMDAG | ||
A1UEAxMpRWxhc3RpYyBDZXJ0aWZpY2F0ZSBUb29sIEF1dG9nZW5lcmF0ZWQgQ0Ew | ||
ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDA4VwADiyl+Xl15D27gtpS | ||
TXZfHt40MUx12FY0MEd3A3hU+Fp4PaLE2ejECx04yrq8Rfc0Yltux/Fc5zE98XM8 | ||
dY4j0QN/e6C/f0mrBI0KaJ25nv0MWFvoqS/D3vWvDFLUP1a3OZICWWoBDG+zCHe5 | ||
Aq0qwge+FU9IUc7G2WPJeUp4e0+EzLxFInls3rTX1xkyq8Q6PT3gi0RZKvHqIudL | ||
DAXDVEGWNxEX9KwQ1nMtRkDZICx/W665kZiBD4XC3WuEkYlDL1ISVw3cmsbYdhb4 | ||
IusIK5zNERi4ewTgDDxic8TbRpkQW189/M3IglrQipH5ixfF6oNSyoRVAa3KZqj5 | ||
AgMBAAGjUzBRMB0GA1UdDgQWBBRI4mOaeunbu60GfjWTpHcvhb6/YTAfBgNVHSME | ||
GDAWgBRI4mOaeunbu60GfjWTpHcvhb6/YTAPBgNVHRMBAf8EBTADAQH/MA0GCSqG | ||
SIb3DQEBCwUAA4IBAQCUOXddlGoU+Ni85D0cRjYYxyx8a5Rwngp+kztttT/5l3Ch | ||
5JMZyl/xcaTryh37BG3+NuqKR1zHtcLpq/+xaCrwBQ8glJofF+1n9w4zBL9nrH5c | ||
O5NgG7+u/sfB+xdqMVdoBBqfm1Roq7O1T/kBXis1+5ZtBlj+7WIKeWWTZGLTrHV+ | ||
MW5RDOmMoLkqT5qzpR9Yf7UChPVrvKGs4Kd+fYJeb0R5W6mvZQ6/FrsLwAWLC2Q1 | ||
rW1u4zIkO0ih5qd52dl/73u7SWqzWxPy1ynwqJefD4AA0uaJYtMlXHK2vYjutHvY | ||
K7301gzc5fueqo1YMmPgsjjsj+ErR1t0ve7faOBy | ||
-----END CERTIFICATE----- |
30 changes: 30 additions & 0 deletions
30
x-pack/plugin/security/qa/basic-enable-security/src/test/resources/ssl/ca.key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
Proc-Type: 4,ENCRYPTED | ||
DEK-Info: DES-EDE3-CBC,0F6B57727499DA47 | ||
|
||
OmK77UnFtk/zNEbNTxNJz73D2XWFDWLyHCDZPEXkX55vch/pXkkfVbWbPBFv35nA | ||
LKni0j802Qnc1D4V3BUSmVWHk9SfjI5nlcDkSELbgCOpuZkf6Bmk8FgLfV42BFxn | ||
lAiY+oBB4VV+rxA+HUV6CiWWrTgSjkvFyXCBZzcTEPdF2ifWerjsWKOjQZJtmvMX | ||
J5DhYCCp1/n4R/OQpYxQiOqJdUxbKx4k0h139ySK2PggdL17w1a7AuQnHwJO3+ic | ||
1IntPKD/ZhpAPPzq8A5R5jZyvrSj9Dgv94PXAQ5xTZWnZd2nuJtbkrYJ47pBR3Re | ||
R2aZdF/N8ljG1TYHuJXdiL3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rwtFMzq93H05Uoa9mG8uf1QH8t/+o6fniFx5N5kKWmPMy | ||
shXjaYg7NzEBAkxI4VO41faMxEj/CUV0klQDPbnAsTCrcYu7CS2lml3e0zVf6RB8 | ||
plXee99DiWpHZTRoGzpInK3DpnGRP1Frgl1KyhT+HayFZeYSMHfVSFPk3CKKmtEp | ||
r+J/SrpGnEx0NKK3f+MxflZfnMIvgjGxkHdgSaDpz9iTjveq176Bq1GmNLALotOq | ||
-----END RSA PRIVATE KEY----- |
22 changes: 22 additions & 0 deletions
22
x-pack/plugin/security/qa/basic-enable-security/src/test/resources/ssl/transport.crt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIDuDCCAqCgAwIBAgIVAOSHUsKiRx+ekWEEmfI2Q2q3B5hoMA0GCSqGSIb3DQEB | ||
CwUAMDQxMjAwBgNVBAMTKUVsYXN0aWMgQ2VydGlmaWNhdGUgVG9vbCBBdXRvZ2Vu | ||
ZXJhdGVkIENBMB4XDTE5MDQzMDAzNTU0NloXDTI4MTEyODAzNTU0NlowFDESMBAG | ||
A1UEAxMJdHJhbnNwb3J0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA | ||
wBaoGJ9vv9yFxCOg24CsVfwSThOPnea8oujexGZYDgKkCdtcVn03tlyomjOra/dL | ||
PJ0zOvUyktTxv022VQNhkJ/PO+w/NKpHBHaAVZE0o2zvUf8xQqXoHw0S6rAhurs5 | ||
50r8QRkh1Z3ky3uOcFs0pXYCR/2ZVmQNSBhqmhUSK5y0VURot1MtPMw1SeqyabZQ | ||
upDTJ6um/zk2LalfChKJ3vGQGEW7AGfv10eIWSmqQx6rLWAGO4MDelbZhUUr5iFc | ||
D4fW0/MNUXJHTBO5Dyq6n63Wsm0jTYK72bSVw8LZS+uabQCtcHtKUZh38uUEUCjp | ||
MDVY7YmDv0i8qx/MvWasbwIDAQABo4HgMIHdMB0GA1UdDgQWBBQwoESvk9jbbTax | ||
/+c5MCAFEvWW5TAfBgNVHSMEGDAWgBRI4mOaeunbu60GfjWTpHcvhb6/YTCBjwYD | ||
VR0RBIGHMIGEgglsb2NhbGhvc3SCF2xvY2FsaG9zdDYubG9jYWxkb21haW42hwR/ | ||
AAABhxAAAAAAAAAAAAAAAAAAAAABggpsb2NhbGhvc3Q0ggpsb2NhbGhvc3Q2ghVs | ||
b2NhbGhvc3QubG9jYWxkb21haW6CF2xvY2FsaG9zdDQubG9jYWxkb21haW40MAkG | ||
A1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAIQ8/PLfsZ1eKOWW74a4h/Uh5eh8 | ||
u9Led1v+U9tszmULN8JoYSEgyql6zy2pJOuIVLwI9cUvrcypUSDL53NmWhTGAjEL | ||
jbww/G1cngBh5cBzAPq3lRL2lwc8j3ZZ16I1eNyWastvBDdtANlDArCUamZoboBm | ||
HE/jrssC9DOQhxAraiitH3YqjquqztEp1zIuqRI0qYTDFNPzyfyXIyCFIT+3eVI5 | ||
22MqjFL+9IDuoET+VU1i22LhF32TEPotz2hfZTFddql0V1IOJQuVkDkQGFvaJMFy | ||
Xw7d4orV3sxzQYd7muCoaao7g/F675KqpZiiVHqKxTOLafF/MPcfLhH6xZk= | ||
-----END CERTIFICATE----- |
30 changes: 30 additions & 0 deletions
30
x-pack/plugin/security/qa/basic-enable-security/src/test/resources/ssl/transport.key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
Proc-Type: 4,ENCRYPTED | ||
DEK-Info: DES-EDE3-CBC,0B9EFA0829A750FB | ||
|
||
NCrPD7gkQ4Jr5/xI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