mirror of
https://github.com/Dvorinka/Containr.git
synced 2026-10-28 15:51:26 +00:00
feat(vars): project shared variables — ${{shared.KEY}} refs, CRUD, UI
- project_variables table (secret entries encrypted at rest, masked in API)
- resolveServiceEnv resolves shared.* before service lookup
- GET|PUT /projects/{id}/variables; CLI 'variables shared list|set|unset';
MCP containr_shared_variables_{list,set}
- Settings tab → Shared Variables editor; env help text mentions shared refs
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
b22ac401c8
commit
25fa8c47e6
14 files changed
+610
-16
No files matched your search
@@ -1238,6 +1238,22 @@ export async function updateServiceVariables(
|
||||
return normalizeServiceVariables(payload.variables);
|
||||
}
|
||||
|
||||
export async function listProjectVariables(projectId: string): Promise<ServiceVariable[]> {
|
||||
const payload = await requestJson<{ variables?: RawServiceVariable[] }>(`/projects/${projectId}/variables`);
|
||||
return normalizeServiceVariables(payload.variables);
|
||||
}
|
||||
|
||||
export async function updateProjectVariables(
|
||||
projectId: string,
|
||||
variables: UpdateServiceVariableInput[],
|
||||
): Promise<ServiceVariable[]> {
|
||||
const payload = await requestJson<{ variables?: RawServiceVariable[] }>(
|
||||
`/projects/${projectId}/variables`,
|
||||
{ method: 'PUT', body: JSON.stringify({ variables }) },
|
||||
);
|
||||
return normalizeServiceVariables(payload.variables);
|
||||
}
|
||||
|
||||
export async function listAuditLogs(input: ListAuditLogsInput = {}): Promise<AuditLogEntity[]> {
|
||||
const searchParams = new URLSearchParams();
|
||||
if (input.resource) {
|
||||
|
||||
Reference in new issue
Block a user