@greenarmor/ges-core 0.1.0
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/LICENSE +21 -0
- package/dist/constants/index.d.ts +28 -0
- package/dist/constants/index.js +69 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/index.d.ts +660 -0
- package/dist/schemas/index.js +102 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/types/index.d.ts +105 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +26 -0
- package/src/constants/index.ts +83 -0
- package/src/index.ts +3 -0
- package/src/schemas/index.ts +112 -0
- package/src/types/index.ts +140 -0
- package/tsconfig.json +8 -0
- package/tsconfig.tsbuildinfo +1 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 greenarmor
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ProjectType, FrameworkName } from "../types/index.js";
|
|
2
|
+
export declare const GESF_VERSION = "0.1.0";
|
|
3
|
+
export declare const PROJECT_TYPES: {
|
|
4
|
+
value: ProjectType;
|
|
5
|
+
label: string;
|
|
6
|
+
}[];
|
|
7
|
+
export declare const FRAMEWORKS: {
|
|
8
|
+
value: FrameworkName;
|
|
9
|
+
label: string;
|
|
10
|
+
}[];
|
|
11
|
+
export declare const DEFAULT_FRAMEWORKS: FrameworkName[];
|
|
12
|
+
export declare const PROJECT_TYPE_PACKS: Record<ProjectType, string[]>;
|
|
13
|
+
export declare const DATA_CLASSIFICATIONS: readonly ["public", "internal", "confidential", "restricted"];
|
|
14
|
+
export declare const APPROVED_ENCRYPTION: readonly ["AES-256-GCM", "ChaCha20-Poly1305", "TLS 1.3", "TLS 1.2"];
|
|
15
|
+
export declare const APPROVED_HASHING: readonly ["Argon2id", "bcrypt", "scrypt"];
|
|
16
|
+
export declare const REJECTED_HASHING: readonly ["MD5", "SHA1", "plain-text"];
|
|
17
|
+
export declare const AUDIT_LOG_FIELDS: readonly ["userId", "action", "resource", "timestamp", "ipAddress"];
|
|
18
|
+
export declare const MUST_LOG_EVENTS: readonly ["authentication", "authorization", "data_export", "role_changes", "administrative_actions"];
|
|
19
|
+
export declare const MUST_NOT_LOG: readonly ["passwords", "tokens", "private_keys", "sensitive_personal_data"];
|
|
20
|
+
export declare const DB_AUDIT_COLUMNS: readonly ["created_at", "updated_at", "deleted_at", "created_by", "updated_by"];
|
|
21
|
+
export declare const GES_DIR = ".ges";
|
|
22
|
+
export declare const COMPLIANCE_DIR = "compliance";
|
|
23
|
+
export declare const SECURITY_DIR = "security";
|
|
24
|
+
export declare const CONTROLS_DIR = "controls";
|
|
25
|
+
export declare const POLICIES_DIR = "policies";
|
|
26
|
+
export declare const CHECKLISTS_DIR = "checklists";
|
|
27
|
+
export declare const DOCS_DIR = "docs";
|
|
28
|
+
export declare const REPORTS_DIR = "reports";
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export const GESF_VERSION = "0.1.0";
|
|
2
|
+
export const PROJECT_TYPES = [
|
|
3
|
+
{ value: "saas", label: "SaaS" },
|
|
4
|
+
{ value: "ai-application", label: "AI Application" },
|
|
5
|
+
{ value: "mcp-server", label: "MCP Server" },
|
|
6
|
+
{ value: "blockchain", label: "Blockchain" },
|
|
7
|
+
{ value: "wallet", label: "Wallet" },
|
|
8
|
+
{ value: "government-system", label: "Government System" },
|
|
9
|
+
{ value: "healthcare-system", label: "Healthcare System" },
|
|
10
|
+
{ value: "event-platform", label: "Event Platform" },
|
|
11
|
+
{ value: "photo-storage-platform", label: "Photo Storage Platform" },
|
|
12
|
+
{ value: "vulnerability-scanner", label: "Vulnerability Scanner" },
|
|
13
|
+
{ value: "generic-web-application", label: "Generic Web Application" },
|
|
14
|
+
{ value: "api-backend", label: "API Backend" },
|
|
15
|
+
{ value: "mobile-application", label: "Mobile Application" },
|
|
16
|
+
];
|
|
17
|
+
export const FRAMEWORKS = [
|
|
18
|
+
{ value: "GDPR", label: "GDPR" },
|
|
19
|
+
{ value: "OWASP", label: "OWASP ASVS / Top 10" },
|
|
20
|
+
{ value: "CIS", label: "CIS Controls" },
|
|
21
|
+
{ value: "NIST", label: "NIST Cybersecurity Framework" },
|
|
22
|
+
{ value: "ISO27001", label: "ISO 27001" },
|
|
23
|
+
{ value: "ISO27701", label: "ISO 27701" },
|
|
24
|
+
];
|
|
25
|
+
export const DEFAULT_FRAMEWORKS = ["GDPR", "OWASP", "CIS", "NIST"];
|
|
26
|
+
export const PROJECT_TYPE_PACKS = {
|
|
27
|
+
"saas": ["gdpr", "owasp", "cis", "nist"],
|
|
28
|
+
"ai-application": ["gdpr", "owasp", "ai"],
|
|
29
|
+
"mcp-server": ["gdpr", "ai"],
|
|
30
|
+
"blockchain": ["gdpr", "blockchain"],
|
|
31
|
+
"wallet": ["gdpr", "blockchain"],
|
|
32
|
+
"government-system": ["gdpr", "government"],
|
|
33
|
+
"healthcare-system": ["gdpr", "owasp", "cis"],
|
|
34
|
+
"event-platform": ["gdpr", "owasp"],
|
|
35
|
+
"photo-storage-platform": ["gdpr", "owasp"],
|
|
36
|
+
"vulnerability-scanner": ["gdpr", "owasp"],
|
|
37
|
+
"generic-web-application": ["gdpr", "owasp", "cis"],
|
|
38
|
+
"api-backend": ["gdpr", "owasp"],
|
|
39
|
+
"mobile-application": ["gdpr", "owasp"],
|
|
40
|
+
};
|
|
41
|
+
export const DATA_CLASSIFICATIONS = ["public", "internal", "confidential", "restricted"];
|
|
42
|
+
export const APPROVED_ENCRYPTION = ["AES-256-GCM", "ChaCha20-Poly1305", "TLS 1.3", "TLS 1.2"];
|
|
43
|
+
export const APPROVED_HASHING = ["Argon2id", "bcrypt", "scrypt"];
|
|
44
|
+
export const REJECTED_HASHING = ["MD5", "SHA1", "plain-text"];
|
|
45
|
+
export const AUDIT_LOG_FIELDS = ["userId", "action", "resource", "timestamp", "ipAddress"];
|
|
46
|
+
export const MUST_LOG_EVENTS = [
|
|
47
|
+
"authentication",
|
|
48
|
+
"authorization",
|
|
49
|
+
"data_export",
|
|
50
|
+
"role_changes",
|
|
51
|
+
"administrative_actions",
|
|
52
|
+
];
|
|
53
|
+
export const MUST_NOT_LOG = ["passwords", "tokens", "private_keys", "sensitive_personal_data"];
|
|
54
|
+
export const DB_AUDIT_COLUMNS = [
|
|
55
|
+
"created_at",
|
|
56
|
+
"updated_at",
|
|
57
|
+
"deleted_at",
|
|
58
|
+
"created_by",
|
|
59
|
+
"updated_by",
|
|
60
|
+
];
|
|
61
|
+
export const GES_DIR = ".ges";
|
|
62
|
+
export const COMPLIANCE_DIR = "compliance";
|
|
63
|
+
export const SECURITY_DIR = "security";
|
|
64
|
+
export const CONTROLS_DIR = "controls";
|
|
65
|
+
export const POLICIES_DIR = "policies";
|
|
66
|
+
export const CHECKLISTS_DIR = "checklists";
|
|
67
|
+
export const DOCS_DIR = "docs";
|
|
68
|
+
export const REPORTS_DIR = "reports";
|
|
69
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC;AAEpC,MAAM,CAAC,MAAM,aAAa,GAA4C;IACpE,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;IAChC,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE;IACpD,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;IAC5C,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;IAC5C,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;IACpC,EAAE,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,mBAAmB,EAAE;IAC1D,EAAE,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,mBAAmB,EAAE;IAC1D,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE;IACpD,EAAE,KAAK,EAAE,wBAAwB,EAAE,KAAK,EAAE,wBAAwB,EAAE;IACpE,EAAE,KAAK,EAAE,uBAAuB,EAAE,KAAK,EAAE,uBAAuB,EAAE;IAClE,EAAE,KAAK,EAAE,yBAAyB,EAAE,KAAK,EAAE,yBAAyB,EAAE;IACtE,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;IAC9C,EAAE,KAAK,EA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