@assinafy/sdk 2.0.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/SECURITY.md ADDED
@@ -0,0 +1,59 @@
1
+ # Security policy
2
+
3
+ ## Supported releases
4
+
5
+ Security fixes are developed on the canonical default branch and released on
6
+ the current supported major. Unless a separate support agreement states
7
+ otherwise, users should run the latest published patch. Older majors and
8
+ superseded minor releases may not receive fixes.
9
+
10
+ ## Reporting a vulnerability
11
+
12
+ Do not disclose a suspected vulnerability in a public issue, discussion, merge
13
+ request, commit message, or CI log.
14
+
15
+ Use the canonical GitLab project's confidential vulnerability-reporting
16
+ channel, or the GitHub mirror's private **Security → Report a vulnerability**
17
+ flow when it is enabled. Verify that the report is private before adding
18
+ sensitive details. If neither private channel is available, open a public issue
19
+ that asks maintainers for a private contact method and include no vulnerability
20
+ details.
21
+
22
+ Provide:
23
+
24
+ - the affected SDK and runtime versions;
25
+ - the affected method, endpoint, and authentication mode;
26
+ - impact and realistic attack preconditions;
27
+ - a minimal, sanitized reproducer or failing test;
28
+ - any proposed mitigation or patch; and
29
+ - whether the issue has been disclosed elsewhere.
30
+
31
+ Do not include usable API keys, bearer tokens, signer access codes, account
32
+ identifiers, webhook secrets, documents, or personal data. Replace them with
33
+ clearly fake values. If a real credential was exposed, revoke or rotate it at
34
+ once; deleting the message or git commit is not sufficient.
35
+
36
+ Maintainers will confirm receipt through the private channel, investigate the
37
+ supported release, coordinate a fix and advisory, and publish a patched version
38
+ when appropriate. Public disclosure should wait until users have a reasonable
39
+ opportunity to upgrade.
40
+
41
+ ## Security expectations
42
+
43
+ - Protected resources require explicit account credentials. Public,
44
+ authentication, and signer-access-code flows use an auth-free transport so
45
+ configured account credentials are not sent to public endpoints.
46
+ - Consumers must use HTTPS endpoints and protect all SDK configuration as
47
+ secrets. Debug logging and error telemetry must be reviewed for response data
48
+ before being enabled in production.
49
+ - The webhook HMAC helper is an opt-in utility, not proof of an official
50
+ Assinafy signing contract. Confirm the header, algorithm, encoding, and secret
51
+ delivery mechanism with Assinafy before enforcing it. See
52
+ `docs/COMPATIBILITY.md`.
53
+ - Dependency changes must keep `bun.lock` synchronized and pass `bun run audit`.
54
+ GitHub Actions are pinned to immutable commit SHAs and updated through
55
+ Dependabot review.
56
+ - Sandbox credentials and fixtures must never be reused in production. Live
57
+ mutation tests belong only in dedicated, disposable sandbox accounts.
58
+
59
+ For general defects without a security impact, use the normal issue tracker.