Skip to content

Commit

Permalink
More debugging of credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Gario committed Aug 13, 2024
1 parent 3b3012e commit e4afb79
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion lib/start-proxy-action.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/start-proxy-action.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/start-proxy-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export type Credential = {
token?: string;
};

function CredentialToStr(c: Credential): string {
return `Type: ${c.type}; Host: ${c.host}; Username: ${c.username}; Password: ${c.password !== undefined}; Token: ${c.token !== undefined}`
}

export type BasicAuthCredentials = {
username: string;
password: string;
Expand Down Expand Up @@ -99,7 +103,7 @@ async function runWrapper() {

// Get the configuration options
const credentials = getCredentials();
logger.debug(`Credentials loaded for the following URLs:\n ${credentials.map(c => c.host).join("\n")}`)
logger.info(`Credentials loaded for the following URLs:\n ${credentials.map(c => CredentialToStr(c)).join("\n")}`);

const ca = generateCertificateAuthority();
const proxyAuth = getProxyAuth();
Expand Down

0 comments on commit e4afb79

Please sign in to comment.