-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathweb-service.yaml
More file actions
47 lines (43 loc) · 978 Bytes
/
web-service.yaml
File metadata and controls
47 lines (43 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: "1.0"
description: "Web service policy for HTTP server deployment"
permissions:
storage:
allow:
- uri: "fs://app/**"
access: ["read"]
- uri: "fs://logs/**"
access: ["write"]
- uri: "fs://uploads/**"
access: ["read", "write"]
deny:
- uri: "fs://app/config/secrets.yaml"
access: ["read"]
network:
allow:
- host: "api.stripe.com"
- host: "api.sendgrid.com"
- host: "*.amazonaws.com"
- cidr: "10.0.0.0/8"
deny:
- host: "*.internal.admin.com"
environment:
allow:
- key: "PATH"
- key: "PORT"
- key: "NODE_ENV"
- key: "DATABASE_URL"
- key: "REDIS_URL"
- key: "JWT_SECRET"
- key: "STRIPE_API_KEY"
runtime:
docker:
security:
privileged: false
no_new_privileges: true
capabilities:
drop: ["ALL"]
add: ["NET_BIND_SERVICE"]
resources:
cpu: 75.0
memory: 512
io: 500