mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Fix CI/CD
Some checks failed
all-good: Did all the other checks pass? / all-good (push) Has been cancelled
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Server Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Server Build and Run / docker (push) Has been cancelled
Runs E2E API Tests (Local Emulator) / E2E Tests (Local Emulator, Node ${{ matrix.node-version }}) (22.x) (push) Has been cancelled
Runs E2E API Tests / E2E Tests (Node ${{ matrix.node-version }}, Freestyle ${{ matrix.freestyle-mode }}) (mock, 22.x) (push) Has been cancelled
Runs E2E API Tests / E2E Tests (Node ${{ matrix.node-version }}, Freestyle ${{ matrix.freestyle-mode }}) (prod, 22.x) (push) Has been cancelled
Runs E2E API Tests with custom port prefix / build (22.x) (push) Has been cancelled
Runs E2E Fallback Tests / E2E Fallback Tests (Node ${{ matrix.node-version }}) (22.x) (push) Has been cancelled
Lint & build / lint_and_build (24) (push) Has been cancelled
Publish npm packages / publish (push) Has been cancelled
Publish Swift SDK to prerelease repo / publish (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
Some checks failed
all-good: Did all the other checks pass? / all-good (push) Has been cancelled
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Server Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Server Build and Run / docker (push) Has been cancelled
Runs E2E API Tests (Local Emulator) / E2E Tests (Local Emulator, Node ${{ matrix.node-version }}) (22.x) (push) Has been cancelled
Runs E2E API Tests / E2E Tests (Node ${{ matrix.node-version }}, Freestyle ${{ matrix.freestyle-mode }}) (mock, 22.x) (push) Has been cancelled
Runs E2E API Tests / E2E Tests (Node ${{ matrix.node-version }}, Freestyle ${{ matrix.freestyle-mode }}) (prod, 22.x) (push) Has been cancelled
Runs E2E API Tests with custom port prefix / build (22.x) (push) Has been cancelled
Runs E2E Fallback Tests / E2E Fallback Tests (Node ${{ matrix.node-version }}) (22.x) (push) Has been cancelled
Lint & build / lint_and_build (24) (push) Has been cancelled
Publish npm packages / publish (push) Has been cancelled
Publish Swift SDK to prerelease repo / publish (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
This commit is contained in:
parent
d4663fbe7d
commit
866e618a20
@ -1 +1 @@
|
||||
Subproject commit ebe0d435e7bbe0251463c78d088d10edcb7ff5a0
|
||||
Subproject commit a815ddcd1354d4bf27042626d1035709c80abdc6
|
||||
@ -1,6 +1,7 @@
|
||||
import { AiProxyBodyProcessor } from "@/lib/ai/proxy-preprocessing";
|
||||
import { SignUpRiskEngine } from "@/lib/risk-scores";
|
||||
import { createNeutralSignUpHeuristicFacts } from "@/lib/sign-up-heuristics";
|
||||
import type { SmtpEgressPolicyResult } from "../types";
|
||||
|
||||
export const signUpRiskEngine: SignUpRiskEngine = {
|
||||
async calculateRiskAssessment() {
|
||||
@ -16,9 +17,9 @@ export const preprocessProxyBody: AiProxyBodyProcessor = ({ parsedBody }) => par
|
||||
export async function checkSmtpEgressPolicy(options: {
|
||||
host: string,
|
||||
port: number,
|
||||
}) {
|
||||
}): Promise<SmtpEgressPolicyResult> {
|
||||
return {
|
||||
status: "ok" as const,
|
||||
status: "ok",
|
||||
addresses: [options.host],
|
||||
};
|
||||
}
|
||||
|
||||
11
apps/backend/src/private/types.ts
Normal file
11
apps/backend/src/private/types.ts
Normal file
@ -0,0 +1,11 @@
|
||||
export type SmtpEgressPolicyViolation = {
|
||||
reason: "disallowed-port" | "internal-ip-literal" | "internal-resolved-address" | "no-dns-addresses" | "dns-lookup-failed",
|
||||
host: string,
|
||||
port: number,
|
||||
addresses?: string[],
|
||||
cause?: unknown,
|
||||
};
|
||||
|
||||
export type SmtpEgressPolicyResult =
|
||||
| { status: "ok", addresses: string[] }
|
||||
| { status: "error", violation: SmtpEgressPolicyViolation };
|
||||
Loading…
Reference in New Issue
Block a user