build/security(gen1): include SYS.API money module, secure-disabled defaults and regression guards
This commit is contained in:
1 parent
953897c369
commit
01d90ea876
1 file changed
+16
@@ -26,6 +26,22 @@ for needle in ('FileMode.CreateNew', 'RandomNumberGenerator.GetBytes(64)',
|
||||
'UnixFileMode.UserRead | UnixFileMode.UserWrite'):
|
||||
assert needle in secret,needle
|
||||
assert "innerHTML" not in js
|
||||
money = read("addons/SysApi/SysApiNvMoney.cs")
|
||||
money_js = read("addons/SysApi/www/money.js")
|
||||
for marker in ("/api/admin/money/payouts", "/api/v1/portal/money/payouts",
|
||||
"/api/v1/portal/money/rate", "ValidPortalCredential",
|
||||
'if (!IsTrustedProxy(req)', "paymentSettlementEnabled = false"):
|
||||
assert marker in api + money, "SYS.API money security invariant absent: " + marker
|
||||
for marker in ("AdministrativeAdjustment(", "GetTransaction(", "NexLedgerConflictException",
|
||||
"FixedTimeEquals", "portal-manual", "admin-manual", "NvPerEuro = 100"):
|
||||
assert marker in money, marker
|
||||
assert "innerHTML" not in money_js
|
||||
assert "OGL_SYSAPI_MONEY_PORTAL_TOKEN" in auth
|
||||
assert 'MoneyPortalEnabled", false' in auth
|
||||
assert 'MoneyAdminEnabled", false' in auth
|
||||
assert 'www/money.js' in project
|
||||
assert 'id="nv-money-form"' in web
|
||||
|
||||
assert "ogl-mascot.webp" in web
|
||||
# Never replace production's complete SYS.API with a foundation-only build:
|
||||
# doing so removes the centrally published citizen rules and blocks all logins.
|
||||
|
||||
Reference in new issue
Block a user