mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-08 21:15:17 +00:00
docs: trim block comment on redactApplicationGitSecrets
This commit is contained in:
@@ -122,14 +122,8 @@ export const findApplicationById = async (applicationId: string) => {
|
|||||||
return application;
|
return application;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
// Blanks the nested git-provider secret columns before an application is sent to
|
||||||
* Blanks the git-provider secret columns nested inside an application before it
|
// a client (server-side clone paths use findApplicationById directly).
|
||||||
* is returned to a client. `findApplicationById` eagerly loads the github /
|
|
||||||
* gitlab / gitea / bitbucket relations (needed server-side to clone), but their
|
|
||||||
* OAuth tokens, app private key and webhook secret must never reach the browser:
|
|
||||||
* no client feature reads them, and `application.one` exposed them to any member
|
|
||||||
* with `service:read` even without git-provider access.
|
|
||||||
*/
|
|
||||||
export const redactApplicationGitSecrets = <
|
export const redactApplicationGitSecrets = <
|
||||||
T extends {
|
T extends {
|
||||||
github?: Record<string, unknown> | null;
|
github?: Record<string, unknown> | null;
|
||||||
|
|||||||
Reference in New Issue
Block a user