@gaonjs/config 0.19.0 → 0.20.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/README.md +1 -1
- package/dist/types.d.ts +12 -0
- package/dist/wire.js +6 -0
- package/package.json +10 -5
package/README.md
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -140,6 +140,18 @@ export interface AppSessionConfig {
|
|
|
140
140
|
* 쓴 defineAppConfig 리터럴이 excess-property 컴파일 에러였다).
|
|
141
141
|
*/
|
|
142
142
|
readonly csrf?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* 쿠키 Secure 토글(결정 295). 생략 시 NODE_ENV==='production' 이면 켬. 운영인데
|
|
145
|
+
* 비-TLS(사내 내부망 http 등)로 서빙하면 Secure 쿠키가 안 실려 로그인이 조용히
|
|
146
|
+
* 실패한다 — 그 경우에만 `false` 로 명시한다(웹 레이어는 지원했는데 이 전달
|
|
147
|
+
* 통로가 없어 우회로가 없었다 · 결정 271 csrf 누락과 동형 표류).
|
|
148
|
+
*/
|
|
149
|
+
readonly secure?: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* 쿠키 SameSite(결정 295). 생략 시 'lax'. `'none'` 은 스펙상 Secure 필수라
|
|
152
|
+
* secure 가 꺼져 있으면 부팅 에러(웹 레이어 가드 · 브라우저 조용한 쿠키 거부 방지).
|
|
153
|
+
*/
|
|
154
|
+
readonly sameSite?: 'lax' | 'strict' | 'none';
|
|
143
155
|
}
|
|
144
156
|
/**
|
|
145
157
|
* 앱별 설정 — apps/<app>/app.config.ts (v0.16 §3.3).
|
package/dist/wire.js
CHANGED
|
@@ -346,6 +346,12 @@ async function assembleApp(config, root, domain, redis, nats) {
|
|
|
346
346
|
// app.config 의 CSRF 토글을 serve 로 전달한다(SessionOptions.csrf · 명시적으로만 끔).
|
|
347
347
|
// 이전엔 wireGaon 이 이 필드를 떨궈 documented 토글이 gaon serve 에서 무시됐다.
|
|
348
348
|
csrf: ac.session.csrf,
|
|
349
|
+
// 결정 295: 쿠키 secure·sameSite 도 전달한다 — 웹 레이어(AppSessionOptions)는
|
|
350
|
+
// 지원했는데 이 통로가 떨궈 운영 비-TLS(secure:false)·sameSite 조정의 우회로가
|
|
351
|
+
// 없었다(결정 271 csrf 누락과 동형). sameSite:'none'+secure 미충족은 웹 레이어가
|
|
352
|
+
// 부팅 에러로 막는다(assertSameSiteSecure).
|
|
353
|
+
secure: ac.session.secure,
|
|
354
|
+
sameSite: ac.session.sameSite,
|
|
349
355
|
},
|
|
350
356
|
};
|
|
351
357
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gaonjs/config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "Gaon 루트 설정 로더·자동 배선 (gaon.config.ts)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://gaonjs.dev",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://git.nyx-zone.com/gaon/framework.git",
|
|
11
|
+
"directory": "packages/config"
|
|
12
|
+
},
|
|
8
13
|
"engines": {
|
|
9
14
|
"node": ">=22"
|
|
10
15
|
},
|
|
@@ -25,14 +30,14 @@
|
|
|
25
30
|
],
|
|
26
31
|
"dependencies": {
|
|
27
32
|
"ioredis": "^5.4.1",
|
|
28
|
-
"@gaonjs/
|
|
33
|
+
"@gaonjs/async": "0.16.0",
|
|
34
|
+
"@gaonjs/adapter-mongo": "0.2.0",
|
|
29
35
|
"@gaonjs/core": "0.2.4",
|
|
30
36
|
"@gaonjs/i18n": "0.2.4",
|
|
37
|
+
"@gaonjs/data": "0.22.0",
|
|
31
38
|
"@gaonjs/mail": "0.3.3",
|
|
32
|
-
"@gaonjs/async": "0.15.3",
|
|
33
39
|
"@gaonjs/storage": "0.1.5",
|
|
34
|
-
"@gaonjs/
|
|
35
|
-
"@gaonjs/web": "0.21.0"
|
|
40
|
+
"@gaonjs/web": "0.24.1"
|
|
36
41
|
},
|
|
37
42
|
"devDependencies": {
|
|
38
43
|
"fastify": "^5.0.0"
|