Skip to content

Commit 4fd4817

Browse files
authored
Revert "Lpcox/print failed container logs" (#614)
Reverts #613
2 parents af1b842 + 04f678e commit 4fd4817

53 files changed

Lines changed: 119 additions & 10209 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,3 @@ scripts/rebase-github-difc.sh
5757

5858
# Serena cache directories
5959
.serena/
60-
61-
# WASM guard build artifacts
62-
examples/guards/*/guard.wasm
63-
*.wasm

.serena/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.serena/project.yml

Lines changed: 0 additions & 89 deletions
This file was deleted.

AGENTS.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -364,18 +364,6 @@ DEBUG_COLORS=0 DEBUG=* ./awmg --config config.toml
364364
- `DEBUG_COLORS` - Control colored output (0 to disable, auto-disabled when piping)
365365
- `MCP_GATEWAY_LOG_DIR` - Log file directory (sets default for `--log-dir` flag, default: `/tmp/gh-aw/mcp-logs`)
366366
- `MCP_GATEWAY_PAYLOAD_DIR` - Large payload storage directory (sets default for `--payload-dir` flag, default: `/tmp/jq-payloads`)
367-
- `MCP_GATEWAY_CONFIG_EXTENSIONS` - Enable config extensions for DIFC features (sets default for `--enable-config-extensions` flag)
368-
- `MCP_GATEWAY_ENABLE_DIFC` - Enable DIFC enforcement (requires `MCP_GATEWAY_CONFIG_EXTENSIONS=1`)
369-
- `MCP_GATEWAY_DIFC_FILTER` - Enable DIFC response filtering (requires DIFC enabled)
370-
- `MCP_GATEWAY_SESSION_SECRECY` - Initial secrecy labels for sessions (requires config extensions)
371-
- `MCP_GATEWAY_SESSION_INTEGRITY` - Initial integrity labels for sessions (requires config extensions)
372-
373-
**Config Extensions:**
374-
Config extensions (guards, session labels) require `--enable-config-extensions` or `MCP_GATEWAY_CONFIG_EXTENSIONS=1`.
375-
This gates all DIFC-related configuration including:
376-
- `guards` section in config
377-
- `gateway.session` section in config
378-
- `--enable-difc`, `--difc-filter`, `--session-secrecy`, `--session-integrity` flags
379367

380368
**File Logging:**
381369
- Operational logs are always written to `mcp-gateway.log` in the configured log directory

Makefile

Lines changed: 5 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: build lint test test-unit test-integration test-all test-serena test-serena-gateway coverage test-ci format clean install release help agent-finished echo-guard-demo echo-guard-build echo-guard-test echo-guard-codex echo-guard-tmux
1+
.PHONY: build lint test test-unit test-integration test-all test-serena test-serena-gateway coverage test-ci format clean install release help agent-finished
22

33
# Default target
44
.DEFAULT_GOAL := help
@@ -21,15 +21,15 @@ build:
2121
lint:
2222
@echo "Running linters..."
2323
@go mod tidy
24-
@go vet $$(go list ./... | grep -v '/examples/guards/')
24+
@go vet ./...
2525
@echo "Running gofmt check..."
26-
@test -z "$$(gofmt -l $$(find . -name '*.go' -not -path './examples/guards/*'))" || (echo "The following files are not formatted:"; gofmt -l $$(find . -name '*.go' -not -path './examples/guards/*'); exit 1)
26+
@test -z "$$(gofmt -l .)" || (echo "The following files are not formatted:"; gofmt -l .; exit 1)
2727
@echo "Running golangci-lint..."
2828
@GOPATH=$$(go env GOPATH); \
2929
if [ -f "$$GOPATH/bin/golangci-lint" ]; then \
30-
$$GOPATH/bin/golangci-lint run --timeout=5m --skip-dirs examples/guards || echo "⚠ Warning: golangci-lint failed (compatibility issue with Go 1.25.0). Continuing with other checks..."; \
30+
$$GOPATH/bin/golangci-lint run --timeout=5m || echo "⚠ Warning: golangci-lint failed (compatibility issue with Go 1.25.0). Continuing with other checks..."; \
3131
elif command -v golangci-lint >/dev/null 2>&1; then \
32-
golangci-lint run --timeout=5m --skip-dirs examples/guards || echo "⚠ Warning: golangci-lint failed (compatibility issue with Go 1.25.0). Continuing with other checks..."; \
32+
golangci-lint run --timeout=5m || echo "⚠ Warning: golangci-lint failed (compatibility issue with Go 1.25.0). Continuing with other checks..."; \
3333
else \
3434
echo "⚠ Warning: golangci-lint not found. Run 'make install' to install it."; \
3535
echo " Skipping golangci-lint checks..."; \
@@ -261,43 +261,4 @@ help:
261261
@echo " install - Install required toolchains and dependencies"
262262
@echo " release - Create and push a release tag (usage: make release patch|minor|major)"
263263
@echo " agent-finished - Run format, build, lint, and all tests (for agents before completion)"
264-
@echo " echo-guard-demo - Run quick echo guard test demo (shows guard I/O)"
265-
@echo " echo-guard-codex - Start gateway with echo guard for Codex integration"
266-
@echo " echo-guard-tmux - Interactive tmux demo (gateway + instructions)"
267-
@echo " echo-guard-build - Build the echo guard WASM file"
268-
@echo " echo-guard-test - Run echo guard integration tests"
269264
@echo " help - Display this help message"
270-
271-
# Echo Guard Demo targets
272-
echo-guard-demo:
273-
@echo ""
274-
@echo "╔═══════════════════════════════════════════════════════════════╗"
275-
@echo "║ ECHO GUARD DEMO ║"
276-
@echo "║ Demonstrates guard I/O for debugging guard implementations ║"
277-
@echo "╚═══════════════════════════════════════════════════════════════╝"
278-
@echo ""
279-
@./scripts/echo-guard-demo.sh all
280-
281-
echo-guard-codex:
282-
@echo ""
283-
@echo "╔═══════════════════════════════════════════════════════════════╗"
284-
@echo "║ ECHO GUARD END-TO-END DEMO WITH CODEX ║"
285-
@echo "╚═══════════════════════════════════════════════════════════════╝"
286-
@echo ""
287-
@./scripts/echo-guard-demo.sh codex
288-
289-
echo-guard-tmux:
290-
@echo ""
291-
@echo "╔═══════════════════════════════════════════════════════════════╗"
292-
@echo "║ ECHO GUARD INTERACTIVE TMUX DEMO ║"
293-
@echo "╚═══════════════════════════════════════════════════════════════╝"
294-
@echo ""
295-
@./scripts/echo-guard-demo.sh tmux
296-
297-
echo-guard-build:
298-
@echo "Building echo guard WASM..."
299-
@./scripts/echo-guard-demo.sh build
300-
301-
echo-guard-test:
302-
@echo "Running echo guard tests..."
303-
@go test -v -run "TestEchoGuard" ./test/integration/...

config.example.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ args = [
104104
# ============================================================================
105105

106106
# Enable Data Information Flow Control (DIFC) security model (default: false)
107-
# When true, enables DIFC enforcement. Sessions are auto-created from Authorization header.
107+
# When true, requires sys___init call before tool access
108108
# This is an experimental feature - keep disabled for standard MCP compatibility
109109
# enable_difc = false
110110

0 commit comments

Comments
 (0)