Skip to content

Latest commit

 

History

History
53 lines (52 loc) · 1.53 KB

CHANGELOG.md

File metadata and controls

53 lines (52 loc) · 1.53 KB

1.0.0. Release notes (2023-08-02)

  • aws-sdk is no longer a peer dependency
  • [BREAKING] From now on the minimum supported version of Node.js is 14.0.0.
  • [BREAKING] Changes in IAM configuration. If you explicitly passed aws-sdk@2 credentials to VaultClient.boot like below:
    const vaultClient = VaultClient.boot('main', {
    api: {url: 'https://vault.example.com:8200/'},
    auth: {
        type: 'iam',
        mount: 'example',
        config: {
            iam_server_id_header_value: 'example',
            role: 'example',
            credentials: AWS.CredentialProviderChain.defaultProviders  // <-- this line
        }
    },
});

This will no longer work. You need to either:

  • Do not pass the credentials at all and rely on the credentials auto-discovery
const vaultClient = VaultClient.boot('main', {
    api: {url: 'https://vault.example.com:8200/'},
    auth: {
        type: 'iam',
        mount: 'example',
        config: {
            iam_server_id_header_value: 'example',
            role: 'example',
        }
    },
});

[OR]

  • Pass the credentials explicitly in the following format
const vaultClient = VaultClient.boot('main', {
    api: {url: 'https://vault.example.com:8200/'},
    auth: {
        type: 'iam',
        mount: 'example',
        config: {
            iam_server_id_header_value: 'example',
            role: 'example',
            credentials: {
                accessKeyId: 'AWS_ACCESS_KEY',
                secretAccessKey: 'AWS_SECRET_KEY',
            }
        }
    },
});