roster-server 2.2.9 → 2.2.10
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/index.js +2 -2
- package/package.json +1 -1
- package/tasks/lessons.md +1 -1
- package/test/roster-server.test.js +5 -6
package/index.js
CHANGED
|
@@ -247,12 +247,12 @@ class Roster {
|
|
|
247
247
|
this.disableWildcard = options.disableWildcard !== undefined
|
|
248
248
|
? parseBooleanFlag(options.disableWildcard, false)
|
|
249
249
|
: parseBooleanFlag(process.env.ROSTER_DISABLE_WILDCARD, false);
|
|
250
|
-
const combineDefault =
|
|
250
|
+
const combineDefault = false;
|
|
251
251
|
this.combineWildcardCerts = options.combineWildcardCerts !== undefined
|
|
252
252
|
? parseBooleanFlag(options.combineWildcardCerts, combineDefault)
|
|
253
253
|
: parseBooleanFlag(process.env.ROSTER_COMBINE_WILDCARD_CERTS, combineDefault);
|
|
254
254
|
if (isBunRuntime && this.combineWildcardCerts) {
|
|
255
|
-
log.info('Bun runtime detected: combined wildcard certificates enabled
|
|
255
|
+
log.info('Bun runtime detected: combined wildcard certificates enabled (SNI bypass)');
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
const port = options.port === undefined ? 443 : options.port;
|
package/package.json
CHANGED
package/tasks/lessons.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
# Lessons Learned
|
|
2
2
|
|
|
3
3
|
- When wildcard TLS must run under Bun, do not rely on manual DNS instructions; default to API-driven DNS-01 TXT creation/removal (Linode/Akamai) with propagation polling, then fall back to manual mode only when no provider token is configured.
|
|
4
|
-
-
|
|
4
|
+
- Do not keep speculative resolver/workaround attempts that are not the root cause; if a change does not resolve the issue with evidence, revert/simplify immediately so temporary experiments do not become permanent complexity.
|
|
@@ -8,7 +8,6 @@ const http = require('http');
|
|
|
8
8
|
const os = require('os');
|
|
9
9
|
const Roster = require('../index.js');
|
|
10
10
|
const {
|
|
11
|
-
isBunRuntime,
|
|
12
11
|
wildcardRoot,
|
|
13
12
|
hostMatchesWildcard,
|
|
14
13
|
wildcardSubjectForHost,
|
|
@@ -325,14 +324,14 @@ describe('Roster', () => {
|
|
|
325
324
|
else process.env.ROSTER_COMBINE_WILDCARD_CERTS = previous;
|
|
326
325
|
}
|
|
327
326
|
});
|
|
328
|
-
it('defaults combineWildcardCerts
|
|
327
|
+
it('defaults combineWildcardCerts to false', () => {
|
|
329
328
|
const roster = new Roster({ local: false });
|
|
330
|
-
assert.strictEqual(roster.combineWildcardCerts, isBunRuntime);
|
|
331
|
-
});
|
|
332
|
-
it('explicit combineWildcardCerts=false overrides Bun default', () => {
|
|
333
|
-
const roster = new Roster({ local: false, combineWildcardCerts: false });
|
|
334
329
|
assert.strictEqual(roster.combineWildcardCerts, false);
|
|
335
330
|
});
|
|
331
|
+
it('explicit combineWildcardCerts=true enables combined cert mode', () => {
|
|
332
|
+
const roster = new Roster({ local: false, combineWildcardCerts: true });
|
|
333
|
+
assert.strictEqual(roster.combineWildcardCerts, true);
|
|
334
|
+
});
|
|
336
335
|
});
|
|
337
336
|
|
|
338
337
|
describe('register (normal domain)', () => {
|