-
Notifications
You must be signed in to change notification settings - Fork 5
James/security enhancements CEL policy update #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,154 @@ | ||
| # Sample values for GKE Autopilot deployment with CEL policy compliance | ||
|
|
||
| global: | ||
| orgName: "<your Braintrust org name>" | ||
| namespace: "braintrust" | ||
|
|
||
| cloud: "google" | ||
|
|
||
| google: | ||
| mode: "autopilot" | ||
| autopilotMachineFamily: "c4" | ||
|
|
||
| objectStorage: | ||
| google: | ||
| brainstoreBucket: "<your brainstore bucket name>" | ||
| apiBucket: "<your api bucket name>" | ||
|
|
||
| api: | ||
| name: "braintrust-api" | ||
| # Uncomment the following section to use a different image or tag from the version in the Helm release | ||
| #image: | ||
| #repository: public.ecr.aws/braintrust/standalone-api | ||
| #tag: "<your image tag>" | ||
| annotations: | ||
| service: | ||
| networking.gke.io/load-balancer-type: "Internal" | ||
| replicas: 4 | ||
| service: | ||
| type: LoadBalancer | ||
| port: 8000 | ||
| portName: http | ||
| serviceAccount: | ||
| name: "braintrust-api" | ||
| googleServiceAccount: "<your Braintrust API Google service account>" | ||
| enableGcsAuth: false | ||
| resources: | ||
| requests: | ||
| cpu: "4" | ||
| memory: "4Gi" | ||
| limits: | ||
| cpu: "4" | ||
| memory: "8Gi" | ||
| securityContext: | ||
| readOnlyRootFilesystem: true | ||
| allowPrivilegeEscalation: false | ||
| capabilities: | ||
| drop: | ||
| - ALL | ||
| tmpVolume: | ||
| enabled: true | ||
| sizeLimit: "1Gi" | ||
| extraEnvVars: | ||
| - name: AWS_REGION | ||
| value: "us-central1" | ||
|
|
||
| brainstore: | ||
| serviceAccount: | ||
| name: "brainstore" | ||
| googleServiceAccount: "<your Braintrust Brainstore Google service account>" | ||
| # Uncomment the following section to use a different image or tag from the version in the Helm release | ||
| #image: | ||
| #repository: public.ecr.aws/braintrust/brainstore | ||
| #tag: "<your image tag>" | ||
| locksBackend: "objectStorage" | ||
|
|
||
| reader: | ||
| name: "brainstore-reader" | ||
| replicas: 2 | ||
| service: | ||
| name: "" | ||
| type: ClusterIP | ||
| port: 4000 | ||
| portName: http | ||
| resources: | ||
| requests: | ||
| cpu: "16" | ||
| memory: "32Gi" | ||
| limits: | ||
| cpu: "16" | ||
| memory: "32Gi" | ||
| cacheDir: "/mnt/tmp/brainstore" | ||
| objectStoreCacheMemoryLimit: "1Gi" | ||
| objectStoreCacheFileSize: "900Gi" | ||
| verbose: true | ||
| securityContext: | ||
| readOnlyRootFilesystem: true | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The cache path is still writable via i.e. then run one product level through the API
|
||
| allowPrivilegeEscalation: false | ||
| capabilities: | ||
| drop: | ||
| - ALL | ||
| volume: | ||
| size: "1000Gi" | ||
| sizeLimit: "900Gi" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Question on sizing
same applies to fastreader/writer below |
||
| extraEnvVars: | ||
|
|
||
| fastreader: | ||
| name: "brainstore-fastreader" | ||
| replicas: 2 | ||
| service: | ||
| name: "" | ||
| type: ClusterIP | ||
| port: 4000 | ||
| portName: http | ||
| resources: | ||
| requests: | ||
| cpu: "16" | ||
| memory: "32Gi" | ||
| limits: | ||
| cpu: "16" | ||
| memory: "32Gi" | ||
| cacheDir: "/mnt/tmp/brainstore" | ||
| objectStoreCacheMemoryLimit: "1Gi" | ||
| objectStoreCacheFileSize: "900Gi" | ||
| verbose: true | ||
| securityContext: | ||
| readOnlyRootFilesystem: true | ||
| allowPrivilegeEscalation: false | ||
| capabilities: | ||
| drop: | ||
| - ALL | ||
| volume: | ||
| size: "1000Gi" | ||
| sizeLimit: "900Gi" | ||
| extraEnvVars: | ||
|
|
||
| writer: | ||
| name: "brainstore-writer" | ||
| replicas: 1 | ||
| service: | ||
| name: "" | ||
| type: ClusterIP | ||
| port: 4000 | ||
| portName: http | ||
| resources: | ||
| requests: | ||
| cpu: "32" | ||
| memory: "64Gi" | ||
| limits: | ||
| cpu: "32" | ||
| memory: "64Gi" | ||
| cacheDir: "/mnt/tmp/brainstore" | ||
| objectStoreCacheMemoryLimit: "1Gi" | ||
| objectStoreCacheFileSize: "900Gi" | ||
| verbose: true | ||
| securityContext: | ||
| readOnlyRootFilesystem: true | ||
| allowPrivilegeEscalation: false | ||
| capabilities: | ||
| drop: | ||
| - ALL | ||
| volume: | ||
| size: "1000Gi" | ||
| sizeLimit: "900Gi" | ||
| extraEnvVars: | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we smoke this with product created custom code scorers rather than only pod-level checks? Maybe:
1.0trace.get_spans()/trace.getSpans()This should exercise the actual scorer sandbox startup path and the trace/object-fetch path that would surface runtime filesystem assumptions under
readOnlyRootFilesystem