fix(auth): expose raw projected config revision

This commit is contained in:
2026-08-26 02:58:33 +02:00
parent 737ec879d9
commit 8b524b4314
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -581,7 +581,7 @@ function load(root: string): LoadedAuthConfig {
);
return {
value: selectedGeneration.value,
revision: `sha256:${selected.generation}`,
revision: selected.generation,
sourcePath: join(generationsPath, selected.generation, "auth.yaml"),
runtimeProjection: snapshot(
selected.generation,
+1 -1
View File
@@ -283,7 +283,7 @@ linuxTest("loads ready projection as one immutable auth and local-users snapshot
const generation = writeReadyProjection(root, fixture);
const loaded = createProjectedAuthenticationConfigProvider(root).current();
expect(loaded.revision).toBe(`sha256:${generation}`);
expect(loaded.revision).toBe(generation);
expect(loaded.sourcePath).toBe(
join(root, "generations", generation, "auth.yaml"),
);