<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error while getting AWS dynamic secret : The security token included in the request is invalid in Secrets Management</title>
    <link>https://live.paloaltonetworks.com/t5/secrets-management/error-while-getting-aws-dynamic-secret-the-security-token/m-p/1299493#M59</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are creating AWS dynamic secrets and onboarding it on Conjur Cloud using&lt;/P&gt;&lt;P&gt;https://docs.cyberark.com/conjur-cloud/latest/en/Content/ConjurCloud/APIs/ccl-api-secrets-dynamic.htm#Updateadynamicsecret&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We create aws issuer using https://docs.cyberark.com/conjur-cloud/latest/en/Content/Developer/Conjur_API_issuer-ephemerals.htm , but it does not have provision to pass aws session token. Without aws session token we will not able to generate secrets on our aws instance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After configuring dynamic secret by following these steps, we get below error&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;    "error": {&lt;/P&gt;&lt;P&gt;        "code": "unprocessable_entity",&lt;/P&gt;&lt;P&gt;        "message": "Failed to create the dynamic secret. Code: ESE00002E, Message: Failed to create the ephemeral secret, description: An error occurred while assuming the AWS IAM role: [operation error STS: AssumeRole, https response error StatusCode: 403, RequestID: 4cc321ba-f062-4fc5-bddc-a63d0685ab7d, api error InvalidClientTokenId: The security token included in the request is invalid.]"&lt;/P&gt;&lt;P&gt;    }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help or let us know if we are missing anything&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2024 12:54:58 GMT</pubDate>
    <dc:creator>deepesh_kumar_CYBR</dc:creator>
    <dc:date>2024-05-29T12:54:58Z</dc:date>
    <item>
      <title>Error while getting AWS dynamic secret : The security token included in the request is invalid</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management/error-while-getting-aws-dynamic-secret-the-security-token/m-p/1299493#M59</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are creating AWS dynamic secrets and onboarding it on Conjur Cloud using&lt;/P&gt;&lt;P&gt;https://docs.cyberark.com/conjur-cloud/latest/en/Content/ConjurCloud/APIs/ccl-api-secrets-dynamic.htm#Updateadynamicsecret&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We create aws issuer using https://docs.cyberark.com/conjur-cloud/latest/en/Content/Developer/Conjur_API_issuer-ephemerals.htm , but it does not have provision to pass aws session token. Without aws session token we will not able to generate secrets on our aws instance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After configuring dynamic secret by following these steps, we get below error&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;    "error": {&lt;/P&gt;&lt;P&gt;        "code": "unprocessable_entity",&lt;/P&gt;&lt;P&gt;        "message": "Failed to create the dynamic secret. Code: ESE00002E, Message: Failed to create the ephemeral secret, description: An error occurred while assuming the AWS IAM role: [operation error STS: AssumeRole, https response error StatusCode: 403, RequestID: 4cc321ba-f062-4fc5-bddc-a63d0685ab7d, api error InvalidClientTokenId: The security token included in the request is invalid.]"&lt;/P&gt;&lt;P&gt;    }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help or let us know if we are missing anything&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 12:54:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management/error-while-getting-aws-dynamic-secret-the-security-token/m-p/1299493#M59</guid>
      <dc:creator>deepesh_kumar_CYBR</dc:creator>
      <dc:date>2024-05-29T12:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error while getting AWS dynamic secret : The security token included in the request is invalid</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management/error-while-getting-aws-dynamic-secret-the-security-token/m-p/1299494#M60</link>
      <description>&lt;P&gt;Hi @Deepesh Kumar​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can think of few areas to check&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Please check that the AWS credentials are correct and have the necessary permissions&lt;/LI&gt;&lt;LI&gt;The IAM role you are trying to assume must have a trust relationship that allows the AWS account or the IAM user/role making the AssumeRole request to assume it&lt;/LI&gt;&lt;LI&gt;Please verify that the role policy attached to the AWS role you are trying to assume includes the necessary permissions to create the secrets.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please enable (if not already) AWS CloudTrail logging to monitor and debug the requests being made to AWS STS. This can provide more insights into why the AssumeRole request is failing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also please manually validate the AWS credentials using the AWS CLI. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps !&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 23:50:05 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management/error-while-getting-aws-dynamic-secret-the-security-token/m-p/1299494#M60</guid>
      <dc:creator>M.Vora780263</dc:creator>
      <dc:date>2024-05-29T23:50:05Z</dc:date>
    </item>
  </channel>
</rss>

