Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/services/api-proxy-env-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import { NetworkConfig } from './squid-service';
/**
* Builds provider API target/basePath environment variables for the api-proxy container.
* Centralizes the repetitive per-provider target/basePath conditional env generation.
* @internal Exported for testing
*/
function buildProviderTargetEnv(config: WrapperConfig): Record<string, string> {
export function buildProviderTargetEnv(config: WrapperConfig): Record<string, string> {
const copilotProviderType = config.copilotProviderType || getConfigEnvValue(config, COPILOT_ENV.PROVIDER_TYPE);
const copilotProviderBaseUrl = config.copilotProviderBaseUrl || getConfigEnvValue(config, COPILOT_ENV.PROVIDER_BASE_URL);
const copilotProviderApiKey = config.copilotProviderApiKey;
Expand Down
2 changes: 1 addition & 1 deletion src/services/api-proxy-service-split.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { parseImageTag } from '../image-tag';
import { COPILOT_PLACEHOLDER_TOKEN } from '../constants/placeholders';
import { baseConfig } from '../test-helpers/docker-test-fixtures.test-utils';
import { buildApiProxyServiceConfig } from './api-proxy-service-config';
import { buildApiProxyBaseEnv } from './api-proxy-env-config';
import { buildApiProxyBaseEnv, buildProviderTargetEnv } from './api-proxy-env-config';
import { buildApiProxyLifecycleConfig } from './api-proxy-lifecycle-config';
import { buildAgentCredentialEnv } from './api-proxy-credential-env';

Expand Down
3 changes: 2 additions & 1 deletion src/ssl-key-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ export async function unmountSslTmpfs(sslDir: string): Promise<void> {
* cannot be guaranteed on all filesystems (for example, journaling/COW).
*
* @param filePath - Path to the file to securely wipe
* @internal Exported for testing
*/
function secureWipeFile(filePath: string): void {
export function secureWipeFile(filePath: string): void {
Comment thread
lpcox marked this conversation as resolved.
let fd: number | undefined;

try {
Expand Down
Loading