Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions containers/agent/bounded-query-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#
# --repo owner/repo (exactly once)
# --schema '<json>' (exactly once; a finite response schema, see
# src/bounded-query/protocol.ts)
# src/bounded-execution/finite-disclosure.ts)
# the query script on stdin
#
# Output contract: exactly one line of canonical JSON on stdout, nothing on
Expand All @@ -34,8 +34,8 @@ SOCKET="${AWF_BOUNDED_QUERY_SOCKET:-}"
ENDPOINT="${AWF_BOUNDED_QUERY_ENDPOINT:-}"
CAPABILITY="${AWF_BOUNDED_QUERY_CAPABILITY:-}"
PROTOCOL_VERSION=2
# Keep in sync with MAX_SCHEMA_BYTES in src/bounded-query/protocol.ts and
# containers/bounded-query/broker/protocol.js.
# Keep in sync with MAX_SCHEMA_BYTES in src/bounded-execution/finite-disclosure.ts
# and containers/bounded-query/bounded-execution/finite-disclosure.js.
MAX_SCHEMA_BYTES=4096

emit_error() {
Expand Down
7 changes: 7 additions & 0 deletions containers/bounded-query/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,19 @@ RUN apk add --no-cache docker-cli \

WORKDIR /opt/awf/broker
COPY broker/ /opt/awf/broker/
COPY bounded-execution/ /opt/awf/bounded-execution/
COPY query-seccomp.json /opt/awf/query-seccomp.json

RUN chmod -R a-w /opt/awf \
&& node --check /opt/awf/broker/server.js \
&& node --check /opt/awf/broker/broker.js \
&& node --check /opt/awf/broker/protocol.js \
&& node --check /opt/awf/bounded-execution/finite-disclosure.js \
&& node --check /opt/awf/bounded-execution/sensitivity-ledger.js \
&& node --check /opt/awf/bounded-execution/fixed-timing.js \
&& node --check /opt/awf/bounded-execution/protected-audit.js \
&& node --check /opt/awf/bounded-execution/repository-staging.js \
&& node --check /opt/awf/bounded-execution/index.js \
&& node --check /opt/awf/broker/framing.js \
&& node --check /opt/awf/broker/workspace.js \
&& node --check /opt/awf/broker/query-runner.js \
Expand Down
Loading
Loading