mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
fix(bedrock): validate guardrail ARNs for tag actions (#6342)
This commit is contained in:
1 parent
d4f454a1cf
commit
589a6a91f7
4 files changed
+116
No files matched your search
@@ -385,6 +385,7 @@ public class BedrockService {
|
||||
}
|
||||
String guardrailId = resolveGuardrailId(resourceArn);
|
||||
return guardrails.get(storageKey(region, guardrailId, DRAFT_VERSION))
|
||||
.filter(guardrail -> !resourceArn.startsWith("arn:") || resourceArn.equals(guardrail.getGuardrailArn()))
|
||||
.orElseThrow(() -> new AwsException("ResourceNotFoundException",
|
||||
"Resource " + resourceArn + " does not exist.", 404));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user