Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
+4
-4
@@ -72,7 +72,7 @@ describe("IpAddressServiceServer", () => {
|
||||
});
|
||||
|
||||
it("speichert nur den IP-Hash, nie die Klartext-IP (AD-22)", async () => {
|
||||
const request = new Request("https://admin.boiler.saas-ctrl.com/login");
|
||||
const request = new Request("https://admin.hivegrid.de/login");
|
||||
|
||||
await expect(
|
||||
IpAddressServiceServer.log(request, { action: "login", description: "admin@example.com" })
|
||||
@@ -89,7 +89,7 @@ describe("IpAddressServiceServer", () => {
|
||||
});
|
||||
|
||||
it("ersetzt die Request-IP nicht durch eine fixe Dev-Adresse", async () => {
|
||||
const request = new Request("https://admin.boiler.saas-ctrl.com/login");
|
||||
const request = new Request("https://admin.hivegrid.de/login");
|
||||
|
||||
await expect(
|
||||
IpAddressServiceServer.log(request, { action: "login", description: "admin@example.com" })
|
||||
@@ -101,7 +101,7 @@ describe("IpAddressServiceServer", () => {
|
||||
|
||||
it("speichert stabile blacklisted-Fehlercodes mit gehashter IP", async () => {
|
||||
findInBlacklistMock.mockResolvedValue({ id: "blacklist_1" } as never);
|
||||
const request = new Request("https://admin.boiler.saas-ctrl.com/login");
|
||||
const request = new Request("https://admin.hivegrid.de/login");
|
||||
|
||||
await expect(
|
||||
IpAddressServiceServer.log(request, { action: "login", description: "admin@example.com" })
|
||||
@@ -135,7 +135,7 @@ describe("IpAddressServiceServer", () => {
|
||||
createdAt: new Date("2026-01-01T00:00:00.000Z"),
|
||||
updatedAt: new Date("2026-01-01T00:00:00.000Z"),
|
||||
});
|
||||
const request = new Request("https://admin.boiler.saas-ctrl.com/login");
|
||||
const request = new Request("https://admin.hivegrid.de/login");
|
||||
|
||||
await expect(
|
||||
IpAddressServiceServer.log(request, { action: "login", description: "admin@example.com" })
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import { cachified, clearCacheKey } from "~/utils/cache.server";
|
||||
import { db } from "~/utils/db.server";
|
||||
import { addBlacklistAttempt, addToBlacklist, findInBlacklist } from "~/utils/db/blacklist.db.server";
|
||||
import { createScopedLogger } from "~/utils/logger.server";
|
||||
import type { IpAddress } from "@toolctrl/db/prisma-browser";
|
||||
import type { IpAddress } from "@hivegrid/db/prisma-browser";
|
||||
import { hashIp, lookupCountry } from "./geoip.server";
|
||||
|
||||
const ipAddressLogger = createScopedLogger("ipAddress");
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
vi.mock("@toolctrl/config", () => ({
|
||||
vi.mock("@hivegrid/config", () => ({
|
||||
loadWebConfig: vi.fn(() => ({ config: { ipGeo: { hashPepper: "test-pepper", dbPath: undefined } } })),
|
||||
}));
|
||||
vi.mock("~/utils/logger.server", () => ({
|
||||
@@ -9,7 +9,7 @@ vi.mock("~/utils/logger.server", () => ({
|
||||
|
||||
import { createHmac } from "node:crypto";
|
||||
import { hashIp, lookupCountry, __resetGeoipReaderForTests } from "./geoip.server";
|
||||
import { loadWebConfig } from "@toolctrl/config";
|
||||
import { loadWebConfig } from "@hivegrid/config";
|
||||
|
||||
describe("geoip.hashIp", () => {
|
||||
beforeEach(() => {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { createHash, createHmac } from "node:crypto";
|
||||
import { open } from "maxmind";
|
||||
import { loadWebConfig } from "@toolctrl/config";
|
||||
import { loadWebConfig } from "@hivegrid/config";
|
||||
import { createScopedLogger } from "~/utils/logger.server";
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user