mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
fix(ssm): resolve Secrets Manager references in GetParameter (#4581)
* fix(ssm): resolve Secrets Manager references in GetParameter GetParameter and GetParameters now answer /aws/reference/secretsmanager/<secret-id>[:<version-id-or-label>] from Secrets Manager, with the checks, error texts and response fields measured against AWS: WithDecryption must be true, a missing secret is ParameterNotFound, and GetParameters lists a reference it cannot answer in InvalidParameters. ECS task secrets and CodeBuild parameter-store variables read through the same path; a CloudFormation AWS::SSM::Parameter::Value<String> parameter still refuses one, as on AWS. * fix(ssm): check secretsmanager:GetSecretValue on a Secrets Manager reference AWS reads /aws/reference/secretsmanager/ with the caller's own secretsmanager:GetSecretValue, checked before the secret is looked up. With IAM enforcement on, a caller allowed only ssm:GetParameter now gets the ValidationException AWS sends, and GetParameters fails as a whole. * fix(ssm): authorize a Secrets Manager reference on the secret's ARN A grant on a secret's exact ARN, which CDK grantRead and a CloudFormation Ref produce, did not match the suffix-less name ARN, so an allowed caller was refused. The check now uses the secret's ARN and falls back to the name only when the secret does not exist. * fix(ssm): check a Secrets Manager reference's value on the secret it came from The value is read by name after the check, so a secret force-deleted and recreated in between was returned on the old secret's grant. The ARN of the secret actually read is now checked too. * fix(ssm): read a Secrets Manager reference's value from the secret it described * docs(ssm): note the partial-ARN fallback a Secrets Manager reference read leaves * fix(ssm): return SourceResult on a Secrets Manager reference * fix(ssm): reject a malformed Secrets Manager reference before checking IAM * chore(ssm): sort SsmService imports
This commit is contained in:
1 parent
014156a546
commit
86c4904bcc
15 files changed
+893
-30
No files matched your search
@@ -305,7 +305,8 @@ public class AwsJson11Controller {
|
||||
String region = regionResolver.resolveRegion(httpHeaders);
|
||||
|
||||
Response delegated = switch (serviceKey) {
|
||||
case "ssm" -> ssmJsonHandler.handle(action, request, region);
|
||||
case "ssm" -> ssmJsonHandler.handle(
|
||||
action, request, region, httpHeaders.getHeaderString("Authorization"));
|
||||
case "events" -> eventBridgeHandler.handle(action, request, region);
|
||||
case "servicediscovery" -> cloudMapHandler.handle(action, request, region);
|
||||
case "elasticmapreduce" -> emrHandler.handle(action, request, region);
|
||||
|
||||
@@ -151,7 +151,7 @@ public class AwsServiceRouter {
|
||||
case "sqs" -> sqsHandler.handle(action, requestBody, region);
|
||||
case "sns" -> snsHandler.handle(action, requestBody, region);
|
||||
case "events" -> eventBridgeHandler.handle(action, requestBody, region);
|
||||
case "ssm" -> ssmHandler.handle(action, requestBody, region);
|
||||
case "ssm" -> ssmHandler.handle(action, requestBody, region, null);
|
||||
case "kinesis" -> kinesisHandler.handle(action, requestBody, region);
|
||||
case "logs" -> logsHandler.handle(action, requestBody, region);
|
||||
case "monitoring" -> metricsHandler.handle(action, requestBody, region);
|
||||
|
||||
+2
-1
@@ -1221,7 +1221,8 @@ public class CloudFormationService implements ResourceProvider {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
resolved.put(e.getKey(), ssmService.getParameter(parameterName, region).getValue());
|
||||
// A plaintext type: a Secrets Manager reference needs decryption, so it is refused.
|
||||
resolved.put(e.getKey(), ssmService.getParameter(parameterName, false, region).getValue());
|
||||
} catch (AwsException ex) {
|
||||
missing.add(parameterName);
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ package io.github.hectorvent.floci.services.ssm;
|
||||
|
||||
import io.github.hectorvent.floci.core.common.AwsErrorResponse;
|
||||
import io.github.hectorvent.floci.core.common.AwsException;
|
||||
import io.github.hectorvent.floci.core.common.IamEnforcementFilter;
|
||||
import io.github.hectorvent.floci.core.common.PaginatedResult;
|
||||
import io.github.hectorvent.floci.core.common.Pagination;
|
||||
import io.github.hectorvent.floci.services.ssm.model.Command;
|
||||
@@ -40,20 +41,23 @@ public class SsmJsonHandler {
|
||||
private final SsmService ssmService;
|
||||
private final SsmCommandService commandService;
|
||||
private final ObjectMapper objectMapper;
|
||||
private final IamEnforcementFilter iamEnforcementFilter;
|
||||
|
||||
@Inject
|
||||
public SsmJsonHandler(SsmService ssmService, SsmCommandService commandService, ObjectMapper objectMapper) {
|
||||
public SsmJsonHandler(SsmService ssmService, SsmCommandService commandService, ObjectMapper objectMapper,
|
||||
IamEnforcementFilter iamEnforcementFilter) {
|
||||
this.ssmService = ssmService;
|
||||
this.commandService = commandService;
|
||||
this.objectMapper = objectMapper;
|
||||
this.iamEnforcementFilter = iamEnforcementFilter;
|
||||
}
|
||||
|
||||
public Response handle(String action, JsonNode request, String region) {
|
||||
public Response handle(String action, JsonNode request, String region, String authorization) {
|
||||
return switch (action) {
|
||||
// Parameter Store
|
||||
case "PutParameter" -> handlePutParameter(request, region);
|
||||
case "GetParameter" -> handleGetParameter(request, region);
|
||||
case "GetParameters" -> handleGetParameters(request, region);
|
||||
case "GetParameter" -> handleGetParameter(request, region, authorization);
|
||||
case "GetParameters" -> handleGetParameters(request, region, authorization);
|
||||
case "GetParametersByPath" -> handleGetParametersByPath(request, region);
|
||||
case "DeleteParameter" -> handleDeleteParameter(request, region);
|
||||
case "DeleteParameters" -> handleDeleteParameters(request, region);
|
||||
@@ -127,20 +131,26 @@ public class SsmJsonHandler {
|
||||
return Response.ok(new PutParameterResponse(version)).build();
|
||||
}
|
||||
|
||||
private Response handleGetParameter(JsonNode request, String region) {
|
||||
private Response handleGetParameter(JsonNode request, String region, String authorization) {
|
||||
String name = request.path("Name").asText();
|
||||
Parameter param = ssmService.getParameter(name, region);
|
||||
boolean withDecryption = request.path("WithDecryption").asBoolean(false);
|
||||
authorizeSecretReads(List.of(name), withDecryption, region, authorization);
|
||||
Parameter param = ssmService.getParameter(name, withDecryption, region);
|
||||
authorizeSecretValues(List.of(param), authorization);
|
||||
|
||||
ObjectNode response = objectMapper.createObjectNode();
|
||||
response.set("Parameter", parameterToNode(param));
|
||||
return Response.ok(response).build();
|
||||
}
|
||||
|
||||
private Response handleGetParameters(JsonNode request, String region) {
|
||||
private Response handleGetParameters(JsonNode request, String region, String authorization) {
|
||||
List<String> names = new ArrayList<>();
|
||||
request.path("Names").forEach(n -> names.add(n.asText()));
|
||||
boolean withDecryption = request.path("WithDecryption").asBoolean(false);
|
||||
authorizeSecretReads(names, withDecryption, region, authorization);
|
||||
|
||||
List<Parameter> params = ssmService.getParameters(names, region);
|
||||
List<Parameter> params = ssmService.getParameters(names, withDecryption, region);
|
||||
authorizeSecretValues(params, authorization);
|
||||
|
||||
ObjectNode response = objectMapper.createObjectNode();
|
||||
ArrayNode parametersArray = objectMapper.createArrayNode();
|
||||
@@ -153,6 +163,46 @@ public class SsmJsonHandler {
|
||||
return Response.ok(response).build();
|
||||
}
|
||||
|
||||
/**
|
||||
* AWS reads a reference with the caller's own {@code secretsmanager:GetSecretValue}, checked
|
||||
* before the secret is looked up, and reports a refusal as a failed dependency call that fails
|
||||
* the whole request.
|
||||
*/
|
||||
private void authorizeSecretReads(List<String> names, boolean withDecryption, String region,
|
||||
String authorization) {
|
||||
if (!withDecryption) {
|
||||
return;
|
||||
}
|
||||
for (String name : names) {
|
||||
String secretArn = name.startsWith(SsmService.SECRET_REFERENCE_PREFIX)
|
||||
? ssmService.secretReferenceArn(name, region) : null;
|
||||
if (secretArn != null) {
|
||||
authorizeSecretRead(authorization, secretArn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks the secret each value came from, which differs from the one checked before the read
|
||||
* when the secret was replaced in between.
|
||||
*/
|
||||
private void authorizeSecretValues(List<Parameter> params, String authorization) {
|
||||
for (Parameter param : params) {
|
||||
if (param.getName().startsWith(SsmService.SECRET_REFERENCE_PREFIX)) {
|
||||
authorizeSecretRead(authorization, param.getArn());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void authorizeSecretRead(String authorization, String secretArn) {
|
||||
try {
|
||||
iamEnforcementFilter.authorizeAdditionalResource(authorization, "secretsmanager:GetSecretValue", secretArn);
|
||||
} catch (AwsException denied) {
|
||||
throw new AwsException("ValidationException",
|
||||
"An error occurred while calling one AWS dependency service.", 400);
|
||||
}
|
||||
}
|
||||
|
||||
private Response handleGetParametersByPath(JsonNode request, String region) {
|
||||
String path = request.path("Path").asText();
|
||||
boolean recursive = request.path("Recursive").asBoolean(false);
|
||||
@@ -1025,15 +1075,22 @@ public class SsmJsonHandler {
|
||||
private ObjectNode parameterToNode(Parameter p) {
|
||||
ObjectNode node = objectMapper.createObjectNode();
|
||||
node.put("Name", p.getName());
|
||||
node.put("Value", p.getValue());
|
||||
if (p.getValue() != null) {
|
||||
node.put("Value", p.getValue());
|
||||
}
|
||||
node.put("Type", p.getType());
|
||||
node.put("Version", p.getVersion());
|
||||
node.put("LastModifiedDate", p.getLastModifiedDate().toEpochMilli() / 1000.0);
|
||||
node.put("ARN", p.getArn());
|
||||
node.put("DataType", p.getDataType());
|
||||
if (p.getDataType() != null) {
|
||||
node.put("DataType", p.getDataType());
|
||||
}
|
||||
if (p.getSelector() != null) {
|
||||
node.put("Selector", p.getSelector());
|
||||
}
|
||||
if (p.getSourceResult() != null) {
|
||||
node.put("SourceResult", p.getSourceResult());
|
||||
}
|
||||
return node;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,12 +1,23 @@
|
||||
package io.github.hectorvent.floci.services.ssm;
|
||||
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import com.fasterxml.jackson.databind.node.ArrayNode;
|
||||
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
|
||||
import com.fasterxml.jackson.databind.node.ObjectNode;
|
||||
import io.github.hectorvent.floci.config.EmulatorConfig;
|
||||
import io.github.hectorvent.floci.core.common.AwsArnUtils;
|
||||
import io.github.hectorvent.floci.core.common.AwsException;
|
||||
import io.github.hectorvent.floci.core.common.RegionResolver;
|
||||
import io.github.hectorvent.floci.core.resource.ExplorerResource;
|
||||
import io.github.hectorvent.floci.core.resource.ResourceProvider;
|
||||
import io.github.hectorvent.floci.core.resource.SupportedResourceType;
|
||||
import io.github.hectorvent.floci.core.storage.InMemoryStorage;
|
||||
import io.github.hectorvent.floci.core.storage.StorageBackend;
|
||||
import io.github.hectorvent.floci.core.storage.StorageFactory;
|
||||
import io.github.hectorvent.floci.services.ec2.Ec2ImageCatalog;
|
||||
import io.github.hectorvent.floci.services.secretsmanager.SecretsManagerService;
|
||||
import io.github.hectorvent.floci.services.secretsmanager.model.Secret;
|
||||
import io.github.hectorvent.floci.services.secretsmanager.model.SecretVersion;
|
||||
import io.github.hectorvent.floci.services.ssm.model.Parameter;
|
||||
import io.github.hectorvent.floci.services.ssm.model.ParameterHistory;
|
||||
import io.github.hectorvent.floci.services.ssm.model.ParameterStringFilter;
|
||||
@@ -14,17 +25,14 @@ import io.github.hectorvent.floci.services.ssm.model.PatchBaselineIdentity;
|
||||
import io.github.hectorvent.floci.services.ssm.model.ServiceSetting;
|
||||
import io.github.hectorvent.floci.services.ssm.model.SsmAssociation;
|
||||
import io.github.hectorvent.floci.services.ssm.model.SsmDocument;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import jakarta.enterprise.context.ApplicationScoped;
|
||||
import jakarta.inject.Inject;
|
||||
import org.jboss.logging.Logger;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.time.ZoneOffset;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.*;
|
||||
import io.github.hectorvent.floci.core.resource.ExplorerResource;
|
||||
import io.github.hectorvent.floci.core.resource.ResourceProvider;
|
||||
import io.github.hectorvent.floci.core.resource.SupportedResourceType;
|
||||
import io.github.hectorvent.floci.core.common.AwsArnUtils;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -34,6 +42,9 @@ public class SsmService implements ResourceProvider {
|
||||
private static final Logger LOG = Logger.getLogger(SsmService.class);
|
||||
|
||||
private static final String PUBLIC_PARAMETER_PREFIX = "/aws/service/";
|
||||
private static final DateTimeFormatter SOURCE_RESULT_DATE =
|
||||
DateTimeFormatter.ofPattern("MMM d, yyyy, h:mm:ss a", Locale.US).withZone(ZoneOffset.UTC);
|
||||
static final String SECRET_REFERENCE_PREFIX = "/aws/reference/secretsmanager/";
|
||||
// Label is a ParameterStringFilter key too, but only GetParametersByPath accepts it.
|
||||
private static final Set<String> DESCRIBE_PARAMETERS_FILTER_KEYS =
|
||||
Set.of("Name", "Type", "KeyId", "Path", "Tier", "DataType");
|
||||
@@ -59,10 +70,11 @@ public class SsmService implements ResourceProvider {
|
||||
private final int maxParameterHistory;
|
||||
private final RegionResolver regionResolver;
|
||||
private final Ec2ImageCatalog imageCatalog;
|
||||
private final SecretsManagerService secretsManager;
|
||||
|
||||
@Inject
|
||||
public SsmService(StorageFactory storageFactory, EmulatorConfig config, RegionResolver regionResolver,
|
||||
Ec2ImageCatalog imageCatalog) {
|
||||
Ec2ImageCatalog imageCatalog, SecretsManagerService secretsManager) {
|
||||
this(
|
||||
storageFactory.create("ssm", "ssm-parameters.json",
|
||||
new TypeReference<>() {
|
||||
@@ -84,7 +96,8 @@ public class SsmService implements ResourceProvider {
|
||||
}),
|
||||
config.services().ssm().maxParameterHistory(),
|
||||
regionResolver,
|
||||
imageCatalog
|
||||
imageCatalog,
|
||||
secretsManager
|
||||
);
|
||||
}
|
||||
|
||||
@@ -129,7 +142,7 @@ public class SsmService implements ResourceProvider {
|
||||
StorageBackend<String, SsmAssociation> associationStore,
|
||||
int maxParameterHistory, RegionResolver regionResolver) {
|
||||
this(parameterStore, historyStore, documentPermissionStore, documentStore,
|
||||
serviceSettingStore, associationStore, maxParameterHistory, regionResolver, null);
|
||||
serviceSettingStore, associationStore, maxParameterHistory, regionResolver, null, null);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -143,7 +156,7 @@ public class SsmService implements ResourceProvider {
|
||||
StorageBackend<String, ServiceSetting> serviceSettingStore,
|
||||
StorageBackend<String, SsmAssociation> associationStore,
|
||||
int maxParameterHistory, RegionResolver regionResolver,
|
||||
Ec2ImageCatalog imageCatalog) {
|
||||
Ec2ImageCatalog imageCatalog, SecretsManagerService secretsManager) {
|
||||
this.parameterStore = parameterStore;
|
||||
this.historyStore = historyStore;
|
||||
this.documentPermissionStore = documentPermissionStore;
|
||||
@@ -153,6 +166,7 @@ public class SsmService implements ResourceProvider {
|
||||
this.maxParameterHistory = maxParameterHistory;
|
||||
this.regionResolver = regionResolver;
|
||||
this.imageCatalog = imageCatalog;
|
||||
this.secretsManager = secretsManager;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -204,7 +218,15 @@ public class SsmService implements ResourceProvider {
|
||||
return version;
|
||||
}
|
||||
|
||||
/** Reads on behalf of ECS task secrets, CodeBuild and CloudFormation ssm-secure, which decrypt. */
|
||||
public Parameter getParameter(String name, String region) {
|
||||
return getParameter(name, true, region);
|
||||
}
|
||||
|
||||
public Parameter getParameter(String name, boolean withDecryption, String region) {
|
||||
if (name != null && name.startsWith(SECRET_REFERENCE_PREFIX)) {
|
||||
return secretReference(name, withDecryption, region);
|
||||
}
|
||||
return findParameter(name, region).orElseThrow(() -> {
|
||||
int separator = name == null ? -1 : name.lastIndexOf(':');
|
||||
if (separator > 0 && separator < name.length() - 1
|
||||
@@ -217,14 +239,118 @@ public class SsmService implements ResourceProvider {
|
||||
});
|
||||
}
|
||||
|
||||
public List<Parameter> getParameters(List<String> names, String region) {
|
||||
/** A name AWS cannot answer, whatever the reason, is left out rather than failing the call. */
|
||||
public List<Parameter> getParameters(List<String> names, boolean withDecryption, String region) {
|
||||
List<Parameter> result = new ArrayList<>();
|
||||
for (String name : names) {
|
||||
findParameter(name, region).ifPresent(result::add);
|
||||
try {
|
||||
result.add(getParameter(name, withDecryption, region));
|
||||
} catch (AwsException e) {
|
||||
LOG.debugv("GetParameters lists {0} as invalid: {1}", name, e.getMessage());
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* The resource IAM checks a reference read on: the secret's ARN, or for a secret that does not
|
||||
* exist, the ARN a GetSecretValue by that name is checked on, so a missing secret is refused too.
|
||||
* Null for a malformed name, which AWS rejects before it calls Secrets Manager.
|
||||
*/
|
||||
String secretReferenceArn(String name, String region) {
|
||||
SecretReferenceName reference = SecretReferenceName.of(name);
|
||||
if (reference.malformed()) {
|
||||
return null;
|
||||
}
|
||||
String secretId = reference.secretId();
|
||||
try {
|
||||
return secretsManager.describeSecret(secretId, region).getArn();
|
||||
} catch (AwsException expected) {
|
||||
// No such secret: check the name instead, so the caller is refused either way.
|
||||
return regionResolver.buildArn("secretsmanager", region, "secret:" + secretId);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* AWS answers {@code /aws/reference/secretsmanager/<secret-id>[:<version-id-or-label>]} with the
|
||||
* secret's value. The order of the checks and the error texts are what AWS sends, including the
|
||||
* missing slash and the "null" it prints for a name without a selector.
|
||||
*/
|
||||
private Parameter secretReference(String name, boolean withDecryption, String region) {
|
||||
SecretReferenceName reference = SecretReferenceName.of(name);
|
||||
String secretId = reference.secretId();
|
||||
String selector = reference.selector();
|
||||
if (reference.malformed()) {
|
||||
throw new AwsException("ValidationException", "Invalid parameter name. Please use correct syntax "
|
||||
+ "for referencing a version/label <name>:<version/label>", 400);
|
||||
}
|
||||
if (!withDecryption) {
|
||||
throw new AwsException("ValidationException",
|
||||
"WithDecryption flag must be True for retrieving a Secret Manager secret.", 400);
|
||||
}
|
||||
Secret secret;
|
||||
SecretVersion version;
|
||||
try {
|
||||
secret = secretsManager.describeSecret(secretId, region);
|
||||
boolean byId = selector != null && secret.getVersions().containsKey(selector);
|
||||
// By the ARN just described, so a secret replaced in between is not found rather than read.
|
||||
// A miss still falls back to a secret named like the ARN's last part ("app-AbCdEf"), a
|
||||
// name AWS warns against, so that fallback is deliberately not guarded here.
|
||||
version = secretsManager.getSecretValue(secret.getArn(), byId ? selector : null,
|
||||
byId ? null : selector, region);
|
||||
} catch (AwsException e) {
|
||||
if ("ResourceNotFoundException".equals(e.getErrorCode())) {
|
||||
throw new AwsException("ParameterNotFound", "An error occurred (ParameterNotFound) when referencing "
|
||||
+ "Secrets Manager: Secret " + name.substring(1) + (selector == null ? "null" : "")
|
||||
+ " not found.", 400);
|
||||
}
|
||||
throw new AwsException("ValidationException", "Invalid Request to Secrets Manager", 400);
|
||||
}
|
||||
Parameter parameter = new Parameter(SECRET_REFERENCE_PREFIX + secretId, version.getSecretString(), "SecureString");
|
||||
parameter.setVersion(0);
|
||||
parameter.setArn(secret.getArn());
|
||||
parameter.setLastModifiedDate(version.getCreatedDate());
|
||||
parameter.setDataType(null);
|
||||
parameter.setSelector(selector == null ? null : ":" + selector);
|
||||
parameter.setSourceResult(sourceResult(secret, version));
|
||||
return parameter;
|
||||
}
|
||||
|
||||
/** The secret id and the version id or staging label after the first colon, if any. */
|
||||
private record SecretReferenceName(String secretId, String selector) {
|
||||
static SecretReferenceName of(String name) {
|
||||
String reference = name.substring(SECRET_REFERENCE_PREFIX.length());
|
||||
int colon = reference.indexOf(':');
|
||||
return colon < 0 ? new SecretReferenceName(reference, null)
|
||||
: new SecretReferenceName(reference.substring(0, colon), reference.substring(colon + 1));
|
||||
}
|
||||
|
||||
/** A trailing colon or a second one, which AWS rejects before anything else. */
|
||||
boolean malformed() {
|
||||
return selector != null && (selector.isEmpty() || selector.contains(":"));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* AWS's GetSecretValue result the way SSM serializes it: Gson's field names, order and default
|
||||
* US date format in UTC, with null fields left out.
|
||||
*/
|
||||
private static String sourceResult(Secret secret, SecretVersion version) {
|
||||
ObjectNode result = JsonNodeFactory.instance.objectNode()
|
||||
.put("ARN", secret.getArn())
|
||||
.put("name", secret.getName())
|
||||
.put("versionId", version.getVersionId());
|
||||
if (version.getSecretString() != null) {
|
||||
result.put("secretString", version.getSecretString());
|
||||
}
|
||||
// AWS dumps a binary secret's ByteBuffer internals here; left out until a caller reads them.
|
||||
if (version.getVersionStages() != null) {
|
||||
ArrayNode stages = result.putArray("versionStages");
|
||||
version.getVersionStages().forEach(stages::add);
|
||||
}
|
||||
return result.put("createdDate", SOURCE_RESULT_DATE.format(version.getCreatedDate())).toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* AWS reserves the {@code aws} and {@code ssm} namespaces, with or without a leading slash
|
||||
* and regardless of case, so an account can never write over a public parameter. The rule
|
||||
|
||||
@@ -46,6 +46,10 @@ public class Parameter {
|
||||
@JsonIgnore
|
||||
private String selector;
|
||||
|
||||
// Only set on a Secrets Manager reference: AWS's GetSecretValue result as a JSON string.
|
||||
@JsonIgnore
|
||||
private String sourceResult;
|
||||
|
||||
public Parameter() {}
|
||||
|
||||
public Parameter(String name, String value, String type) {
|
||||
@@ -85,4 +89,7 @@ public class Parameter {
|
||||
|
||||
public String getSelector() { return selector; }
|
||||
public void setSelector(String selector) { this.selector = selector; }
|
||||
|
||||
public String getSourceResult() { return sourceResult; }
|
||||
public void setSourceResult(String sourceResult) { this.sourceResult = sourceResult; }
|
||||
}
|
||||
Reference in new issue
Block a user