Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix(agent-vault): github template covers git over https (#8792)
Saif Ur Rahman1454f0a46a0f
diff --git a/frontend/src/components/agent-vault/service-sheet/ServiceSheet.tsx b/frontend/src/components/agent-vault/service-sheet/ServiceSheet.tsxindex 20afa08ac4..f5915f2d03 100644--- a/frontend/src/components/agent-vault/service-sheet/ServiceSheet.tsx+++ b/frontend/src/components/agent-vault/service-sheet/ServiceSheet.tsx@@ -97,7 +97,9 @@ const formFromTemplate = (picked: AgentVaultTemplate | null, hosts: string[]): T...(cred.type === AgentVaultCredentialType.Bearer && {headerName: cred.headerName ?? "Authorization",headerPrefix: cred.headerPrefix ?? "Bearer"- })+ }),+ ...(cred.type === AgentVaultCredentialType.Basic &&+ cred.username && { username: cred.username })};};diff --git a/frontend/src/helpers/agentVaultTemplates.ts b/frontend/src/helpers/agentVaultTemplates.tsindex 1049e5b92c..98e48efac9 100644--- a/frontend/src/helpers/agentVaultTemplates.ts+++ b/frontend/src/helpers/agentVaultTemplates.ts@@ -14,7 +14,7 @@ export enum AgentVaultTemplateCategory {export type AgentVaultTemplateCredential =| { type: AgentVaultCredentialType.Bearer; headerName?: string; headerPrefix?: string }- | { type: AgentVaultCredentialType.Basic }+ | { type: AgentVaultCredentialType.Basic; username?: string }| { type: AgentVaultCredentialType.Passthrough };export type AgentVaultTemplate = {@@ -213,8 +213,10 @@ export const AGENT_VAULT_TEMPLATES: AgentVaultTemplate[] = [image: "GitHub.png",category: AgentVaultTemplateCategory.DeveloperTools,description: "Repos, issues, and more on GitHub.",- hostPattern: "api.github.com",- credential: { type: AgentVaultCredentialType.Bearer }+ // Git over HTTPS only accepts the token as a Basic password, and the API takes Basic too, so one+ // credential covers both.+ hostPattern: "api.github.com, github.com, uploads.github.com, raw.githubusercontent.com",+ credential: { type: AgentVaultCredentialType.Basic, username: "x-access-token" }},{key: "gitlab",