Skip to content

Commit 2bb07ea

Browse files
prdoyleldematte
andauthored
Entitle inference to access AWS credentials (#123750) (#124236)
* Entitle inference to access AWS credentials. Copied from the security policy. * more missing entitlements for the inference plugin --------- Co-authored-by: Lorenzo Dematte <[email protected]>
1 parent de2b3b1 commit 2bb07ea

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,35 @@
11
com.google.api.client:
22
- set_https_connection_properties
3+
- outbound_network
4+
software.amazon.awssdk.utils:
5+
- manage_threads
6+
- outbound_network
7+
# AmazonBedrockInferenceClient uses NettyNioAsyncHttpClient, so we grant network permissions (and thread permissions,
8+
# as it is async) to the related modules
9+
software.amazon.awssdk.http.nio.netty:
10+
- manage_threads
11+
- outbound_network
12+
io.netty.common:
13+
- outbound_network
14+
- manage_threads
15+
- files:
16+
- path: "/etc/os-release"
17+
mode: "read"
18+
- path: "/usr/lib/os-release"
19+
mode: "read"
20+
- path: "/proc/sys/net/core/somaxconn"
21+
mode: read
22+
io.netty.transport:
23+
- manage_threads
24+
- outbound_network
25+
# AWS Clients always try to access the credentials and config files, even if we configure otherwise
26+
# This should be "fixed" (as in, it will handle SecurityException correctly)
27+
# by https://github.com/aws/aws-sdk-java-v2/pull/5904. Once confirmed and libraries are updated, these could be removed.
28+
software.amazon.awssdk.profiles:
29+
- files:
30+
- relative_path: .aws/credentials
31+
relative_to: home
32+
mode: read
33+
- relative_path: .aws/config
34+
relative_to: home
35+
mode: read

0 commit comments

Comments
 (0)