Skip to content

Commit a222ebb

Browse files
authored
Merge pull request #26 from soapbucket/chore/add-notice-file
Chore/add notice file
2 parents 6266e36 + 3444b15 commit a222ebb

4 files changed

Lines changed: 24 additions & 22 deletions

File tree

CLAUDE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,10 @@ The chain is compiled once per origin and cached. Requests execute the pre-compi
101101
- Do NOT include enterprise features in OSS code
102102
- Enterprise features are available via sbproxy Cloud (cloud.sbproxy.dev)
103103
- GeoIP and UA parser enrichers are enterprise-only (registered via `plugin.RegisterEnricher` in sbproxy-enterprise)
104+
105+
## License & Attribution
106+
- This project is licensed under Apache 2.0 (see `LICENSE`)
107+
- **NOTICE file maintenance:** When adding or upgrading a dependency that is licensed under Apache 2.0 (not dual MIT/Apache-2.0), update the `NOTICE` file with the dependency's copyright notice and license. Apache 2.0 Section 4 requires this.
108+
- To check: run `go-licenses csv ./...` or inspect `go.mod` for Apache-only deps
109+
- Copyright holder: Soap Bucket LLC
110+
- Do NOT expose internal implementation details (language, libraries, algorithms) in user-facing content per the root CLAUDE.md anti-patterns

e2e/cases/11-cors-security/sb.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,14 @@ origins:
2323
allow_credentials: true
2424
policies:
2525
- type: security_headers
26-
strict_transport_security:
27-
enabled: true
28-
max_age: 31536000
29-
include_subdomains: true
30-
content_security_policy:
31-
enabled: true
32-
policy: "default-src 'self'"
33-
x_frame_options:
34-
enabled: true
35-
value: DENY
36-
x_content_type_options:
37-
enabled: true
38-
no_sniff: true
39-
referrer_policy:
40-
enabled: true
41-
policy: strict-origin-when-cross-origin
26+
headers:
27+
- name: Strict-Transport-Security
28+
value: "max-age=31536000; includeSubDomains"
29+
- name: Content-Security-Policy
30+
value: "default-src 'self'"
31+
- name: X-Frame-Options
32+
value: DENY
33+
- name: X-Content-Type-Options
34+
value: nosniff
35+
- name: Referrer-Policy
36+
value: strict-origin-when-cross-origin

e2e/cases/17-csrf/sb.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ origins:
66
action:
77
type: proxy
88
url: http://127.0.0.1:18888
9-
session_config:
9+
session:
1010
allow_non_ssl: true
1111
cookie_name: sbproxy_session
12-
cookie_max_age: 3600
13-
cookie_same_site: Lax
12+
max_age: 3600
13+
same_site: Lax
1414
policies:
1515
- type: csrf
1616
secret: "cR7tK3mW9pL2vX5qJ8bN4mW6nY3zA"

e2e/cases/32-session/sb.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ origins:
77
action:
88
type: proxy
99
url: http://127.0.0.1:18888
10-
session_config:
10+
session:
1111
cookie_name: sbproxy_sid
12-
cookie_max_age: 3600
13-
cookie_same_site: Lax
12+
max_age: 3600
13+
same_site: Lax
1414
allow_non_ssl: true

0 commit comments

Comments
 (0)