mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 18:26:42 +00:00
misc: moved aws creds to constructor
This commit is contained in:
@@ -574,14 +574,14 @@ export const integrationAuthServiceFactory = ({
|
|||||||
const botKey = await projectBotService.getBotKey(integrationAuth.projectId);
|
const botKey = await projectBotService.getBotKey(integrationAuth.projectId);
|
||||||
const { accessId, accessToken } = await getIntegrationAccessToken(integrationAuth, botKey);
|
const { accessId, accessToken } = await getIntegrationAccessToken(integrationAuth, botKey);
|
||||||
|
|
||||||
AWS.config.update({
|
const kms = new AWS.KMS({
|
||||||
region,
|
region,
|
||||||
credentials: {
|
credentials: {
|
||||||
accessKeyId: String(accessId),
|
accessKeyId: String(accessId),
|
||||||
secretAccessKey: accessToken
|
secretAccessKey: accessToken
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const kms = new AWS.KMS();
|
|
||||||
const aliases = await kms.listAliases({}).promise();
|
const aliases = await kms.listAliases({}).promise();
|
||||||
|
|
||||||
const keyAliases = aliases.Aliases!.filter((alias) => {
|
const keyAliases = aliases.Aliases!.filter((alias) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user