fix(FN-4911): correct reveal payload and reader identity
Fusion-Task-Id: FN-4911 Fusion-Task-Lineage: 021e3ee9-a776-4648-a17d-8ae1a7ebc5be
This commit is contained in:
committed by
gsxdsm
parent
ea0c400dab
commit
73c6f46b5b
@@ -166,11 +166,11 @@ export const registerSecretsRoutes: ApiRouteRegistrar = (ctx) => {
|
||||
const { store: scopedStore } = await getProjectContext(req);
|
||||
const secretsStore = await scopedStore.getSecretsStore();
|
||||
const secret = await secretsStore.revealSecret(id, scope, {
|
||||
userId: req.user?.id ?? null,
|
||||
userId: null,
|
||||
});
|
||||
res.setHeader("Cache-Control", "no-store");
|
||||
res.setHeader("Pragma", "no-cache");
|
||||
res.json({ key: secret.key, value: secret.value });
|
||||
res.json({ key: secret.key, value: secret.plaintextValue });
|
||||
} catch (err: unknown) {
|
||||
if (err instanceof ApiError) throw err;
|
||||
if (err instanceof SecretsStoreError) mapSecretsError(err);
|
||||
|
||||
Reference in New Issue
Block a user