Skip to content

build(deps): bump @aws-sdk/credential-provider-process from 3.37.0 to 3.127.0 #2757

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
111 changes: 44 additions & 67 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3231,7 +3231,7 @@
"@aws-sdk/client-sso": "^3.54.0",
"@aws-sdk/client-sso-oidc": "^3.58.0",
"@aws-sdk/credential-provider-ini": "^3.46.0",
"@aws-sdk/credential-provider-process": "^3.15.0",
"@aws-sdk/credential-provider-process": "^3.127.0",
"@aws-sdk/credential-provider-sso": "^3.38.0",
"@aws-sdk/util-arn-parser": "^3.46.0",
"@vscode/codicons": "^0.0.29",
Expand Down
59 changes: 0 additions & 59 deletions src/test/credentials/provider/sharedCredentialsProvider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import * as sinon from 'sinon'
import { SharedCredentialsProvider } from '../../../credentials/providers/sharedCredentialsProvider'
import { Profile } from '../../../shared/credentials/credentialsFile'
import { stripUndefined } from '../../../shared/utilities/collectionUtils'
import * as process from '@aws-sdk/credential-provider-process'
import { ParsedIniData } from '@aws-sdk/shared-ini-file-loader'
import { installFakeClock } from '../../testUtil'

Expand Down Expand Up @@ -266,29 +265,6 @@ describe('SharedCredentialsProvider', async function () {
assert.ok(makeIni.calledOnce)
}

it('resolves profile with source_profile as credential_process', async function () {
const resolvedProfile = {
base: resolvedBaseProfile,
child: childProfile,
}
const sut = new SharedCredentialsProvider(
'child',
new Map<string, Profile>([
['base', { credential_process: 'test_process' }],
['child', { ...childProfile }],
])
)

sandbox.stub(process, 'fromProcess').returns(() =>
Promise.resolve({
accessKeyId: resolvedBaseProfile['aws_access_key_id'],
secretAccessKey: resolvedBaseProfile['aws_secret_access_key'],
})
)

await assertIniProviderResolves(sut, resolvedProfile)
})

it('resolves profile with source_profile as sso', async function () {
resolvedBaseProfile['aws_session_token'] = 'token'
const resolvedProfile = {
Expand Down Expand Up @@ -322,41 +298,6 @@ describe('SharedCredentialsProvider', async function () {

await assertIniProviderResolves(sut, resolvedProfile)
})

it('resolves profile with source_profile and MFA', async function () {
const mfaSerial = 'serial'
const resolvedProfile = {
base: resolvedBaseProfile,
child: {
...childProfile,
mfa_serial: mfaSerial,
},
}
const sut = new SharedCredentialsProvider(
'child',
new Map<string, Profile>([
[
'base',
{
credential_process: 'test_process',
mfa_serial: mfaSerial,
},
],
['child', { ...childProfile }],
])
)

// We use 'credential_process' here to simulate static credentials since we can't
// stub out 'makeSharedIniFileCredentialsProvider' as it is already stubbed
sandbox.stub(process, 'fromProcess').returns(() =>
Promise.resolve({
accessKeyId: resolvedBaseProfile['aws_access_key_id'],
secretAccessKey: resolvedBaseProfile['aws_secret_access_key'],
})
)

await assertIniProviderResolves(sut, resolvedProfile)
})
})
})

Expand Down