@app-vitals/agent-admin 1.54.0 → 1.55.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/package.json +2 -2
- package/prisma/client/internal/class.ts +4 -4
- package/prisma/client/internal/prismaNamespace.ts +2 -0
- package/prisma/client/internal/prismaNamespaceBrowser.ts +2 -0
- package/prisma/client/models/Account.ts +156 -0
- package/prisma/client/models/GitHubEnterpriseApp.ts +338 -12
- package/prisma/migrations/20261116000000_github_enterprise_app_account_id/migration.sql +21 -0
- package/prisma/schema/schema.prisma +18 -4
- package/src/admin-ui-github-enterprise-pages.ts +7 -26
- package/src/admin-ui-github-enterprise-pages.unit.test.ts +6 -31
- package/src/admin-ui-github-enterprise.smoke.test.ts +2 -10
- package/src/admin-ui-github-enterprise.ts +3 -36
- package/src/github-enterprise-api.integration.test.ts +5 -5
- package/src/github-enterprise-apps.integration.test.ts +101 -3
- package/src/github-enterprise-apps.ts +68 -23
- package/src/github-enterprise-isolation.unit.test.ts +10 -0
|
@@ -79,6 +79,16 @@ describe("GitHub Enterprise key isolation", () => {
|
|
|
79
79
|
]);
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
+
it("no source outside the allowlist reaches the key through the Account relation", () => {
|
|
83
|
+
const offenders = files
|
|
84
|
+
.map((f) => relative(REPO, f))
|
|
85
|
+
.filter((rel) => !ALLOWED.has(rel))
|
|
86
|
+
.filter((rel) =>
|
|
87
|
+
/githubEnterpriseApps/.test(readFileSync(join(REPO, rel), "utf-8")),
|
|
88
|
+
);
|
|
89
|
+
expect(offenders).toEqual([]);
|
|
90
|
+
});
|
|
91
|
+
|
|
82
92
|
it("the config bundle and env serializers never read the enterprise table", () => {
|
|
83
93
|
for (const rel of ["admin/src/agent-envs.ts", "admin/src/api.ts"]) {
|
|
84
94
|
const src = readFileSync(join(REPO, rel), "utf-8");
|