<?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 Re: Issue with aws.generate_signature method in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/issue-with-aws-generate-signature-method/m-p/4749#M2072</link>
    <description>&lt;P&gt;Hi Gary,&lt;BR /&gt;Have you checked the documentation for aws.generate_signature Ruby Method for connector SDK?&lt;BR /&gt;&lt;A href="https://docs.workato.com/developing-connectors/sdk/sdk-reference/ruby_methods.html#aws-generate-signature" target="_blank"&gt;https://docs.workato.com/developing-connectors/sdk/sdk-reference/ruby_methods.html#aws-generate-signature&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You may also check the guide for AWS Service Authentication:&amp;nbsp;&lt;A href="https://docs.workato.com/developing-connectors/sdk/guides/authentication/aws_auth.html#sample-connector-generic-connector" target="_blank"&gt;https://docs.workato.com/developing-connectors/sdk/guides/authentication/aws_auth.html#sample-connector-generic-connector&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you found a bug with the method, please raise a support ticket. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2023 08:05:15 GMT</pubDate>
    <dc:creator>marlon-muela</dc:creator>
    <dc:date>2023-07-20T08:05:15Z</dc:date>
    <item>
      <title>Issue with aws.generate_signature method</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/issue-with-aws-generate-signature-method/m-p/4733#M2065</link>
      <description>&lt;P&gt;We're using the aws.generate_signature method and we're finding that no matter what input we provide, it&amp;nbsp;&lt;STRONG&gt;always&lt;/STRONG&gt; generates the same 20-character credential at the beginning of the Authorization value starting with "Credential=A&lt;SPAN&gt;&lt;SPAN class=""&gt;KIAJ4UK...". This value doesn't match any of our credentials or input into the method, so we have no idea where it's originating.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;We've tried the method in a connector with real and junk credentials, and we've tried this in a Ruby recipe action using completely junk input. We've also tried in different Workato accounts.&amp;nbsp;&lt;STRONG&gt;In all cases, it generates the exact same value,&lt;/STRONG&gt; leading us to believe that the method is buggy and the "AKIA" value is a hardcoded fallback.&lt;/P&gt;&lt;P&gt;We also ran the same exact code in Visual Studio using the Workato Ruby SDK Gem and it worked perfectly.&lt;/P&gt;&lt;P&gt;We're stumped! Has anyone had experience using this method successfully?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 00:28:46 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/issue-with-aws-generate-signature-method/m-p/4733#M2065</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2023-07-19T00:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with aws.generate_signature method</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/issue-with-aws-generate-signature-method/m-p/4749#M2072</link>
      <description>&lt;P&gt;Hi Gary,&lt;BR /&gt;Have you checked the documentation for aws.generate_signature Ruby Method for connector SDK?&lt;BR /&gt;&lt;A href="https://docs.workato.com/developing-connectors/sdk/sdk-reference/ruby_methods.html#aws-generate-signature" target="_blank"&gt;https://docs.workato.com/developing-connectors/sdk/sdk-reference/ruby_methods.html#aws-generate-signature&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You may also check the guide for AWS Service Authentication:&amp;nbsp;&lt;A href="https://docs.workato.com/developing-connectors/sdk/guides/authentication/aws_auth.html#sample-connector-generic-connector" target="_blank"&gt;https://docs.workato.com/developing-connectors/sdk/guides/authentication/aws_auth.html#sample-connector-generic-connector&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you found a bug with the method, please raise a support ticket. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 08:05:15 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/issue-with-aws-generate-signature-method/m-p/4749#M2072</guid>
      <dc:creator>marlon-muela</dc:creator>
      <dc:date>2023-07-20T08:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with aws.generate_signature method</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/issue-with-aws-generate-signature-method/m-p/4753#M2073</link>
      <description>&lt;P&gt;Hi Marlon, we've gone through all of the available documentation. Like I mentioned, our code is working fine in Visual Studio using the Ruby SDK Gem&amp;nbsp;&lt;A href="https://docs.workato.com/developing-connectors/sdk/cli/guides/getting-started.html" target="_blank" rel="noopener"&gt;https://docs.workato.com/developing-connectors/sdk/cli/guides/getting-started.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The same code does not work directly in the Workato SDK, or in the Workato Ruby action.&lt;/P&gt;&lt;P&gt;Here's an example of using the method in a Ruby action with 100% junk data. We're not passing any arguments into this action, and there is no connection object -- yet it&amp;nbsp;&lt;EM&gt;still&lt;/EM&gt; provides the same access key value! It must be hardcoded into the method.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gary1_0-1689862159271.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/513i63BC1909DD5DC1EC/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="gary1_0-1689862159271.png" alt="gary1_0-1689862159271.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 19:50:21 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/issue-with-aws-generate-signature-method/m-p/4753#M2073</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2023-07-20T19:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with aws.generate_signature method</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/issue-with-aws-generate-signature-method/m-p/4759#M2077</link>
      <description>&lt;P&gt;Have you tried passing it as a hash on your connector code for generating aws signature?&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 02:50:07 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/issue-with-aws-generate-signature-method/m-p/4759#M2077</guid>
      <dc:creator>marlon-muela</dc:creator>
      <dc:date>2023-07-21T02:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with aws.generate_signature method</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/issue-with-aws-generate-signature-method/m-p/4761#M2078</link>
      <description>&lt;P&gt;Thanks for checking back in. We were able to resolve this by passing the values encoded as a hash instead of an object.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although we're now able to proceed, there is still a security concern that a Workato AWS access key is somehow getting exposed by error. We learned today that keys starting with "AKIA" are permanent access keys. Considering how consistent this value is being exposed (across tenants, in the SDK, in recipe actions), this warrants further review by Workato.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not going to chase this down further with Workato, but I'll restate the issue one more time: when passing an incorrect "connection" value to aws.generate_signature, the response includes what may be a permanent access key.&lt;/P&gt;&lt;P&gt;If the aws.generate_signature method does not receive the expected input in the expected format, it should&amp;nbsp;&lt;EM&gt;probably&lt;/EM&gt; throw an error. Based on our testing, it appears the method has zero error checking.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gary1_0-1689908557490.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/518i1808F11029291DA2/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="gary1_0-1689908557490.png" alt="gary1_0-1689908557490.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 03:09:10 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/issue-with-aws-generate-signature-method/m-p/4761#M2078</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2023-07-21T03:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with aws.generate_signature method</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/issue-with-aws-generate-signature-method/m-p/4789#M2089</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/1188"&gt;@gary1&lt;/a&gt;,&amp;nbsp;thank you for calling this out. I've forwarded to our team so we can dive deeper into this.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 12:58:11 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/issue-with-aws-generate-signature-method/m-p/4789#M2089</guid>
      <dc:creator>meghan-legaspi</dc:creator>
      <dc:date>2023-07-25T12:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with aws.generate_signature method</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/issue-with-aws-generate-signature-method/m-p/9686#M3949</link>
      <description>&lt;P&gt;This corresponds to an identity in the Workato account:&amp;nbsp;arn:aws:iam::353360065216:user/rba-production&lt;/P&gt;&lt;P&gt;This is shown by running the following action:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;    test_aws_connection: {
      title: 'Test AWS Access',

      execute: -&amp;gt;(connection, input) {
        puts "Test: Connection config:"
        puts connection

        test_signature = aws.generate_signature(
          connection: connection,
          path: "/",
          method: "GET",
          service: 'sts',
          region: connection['region'],
          params: {
            Action: 'GetCallerIdentity',
            Version: '2011-06-15'
          }
        )

        url = test_signature[:url]
        headers = test_signature[:headers]

        response = get(url).headers(headers).response_format_json

        {
          body: response
        }
      }
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2025 22:56:15 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/issue-with-aws-generate-signature-method/m-p/9686#M3949</guid>
      <dc:creator>mab893</dc:creator>
      <dc:date>2025-04-18T22:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with aws.generate_signature method</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/issue-with-aws-generate-signature-method/m-p/9694#M3953</link>
      <description>&lt;P&gt;I was able to get it to work and assume a role by adding the&amp;nbsp;&lt;EM&gt;aws_assume_role&lt;/EM&gt; field in &lt;EM&gt;connection.fields&lt;/EM&gt;. This is similar to the sample connection but without the &lt;EM&gt;aws_auth_type&lt;/EM&gt; definitions and conditionals.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  title: "Basic AWS Role Connector",

  connection: {
    fields: [
      {
        name: "aws_assume_role",
        label: "IAM role ARN",
        optional: false,
      },
      {
        name: "aws_region",
        optional: false,
        hint: "AWS service region. If your account URL is &amp;lt;b&amp;gt;https://eu-west-1.console.s3.amazon.com&amp;lt;/b&amp;gt;, use &amp;lt;b&amp;gt;eu-west-1&amp;lt;/b&amp;gt; as the region."
      }
    ],

    authorization: {
      type: "custom_auth"
    }
  },

  test: lambda do |connection|
    call(:test_aws_connection, connection)
  end,

   methods: {
    test_aws_connection:-&amp;gt;(connection)  {
        puts "Test: Connection config:"
        puts connection

        test_signature = aws.generate_signature(
          connection: connection,
          path: "/",
          method: "GET",
          service: 'sts',
          region: connection['aws_region'],
          params: {
            Action: 'GetCallerIdentity',
            Version: '2011-06-15'
          }
        )

        url = test_signature[:url]
        headers = test_signature[:headers]
        puts "Test: Headers:"
        puts headers ## Outputs sensitive information

        response = get(url).headers(headers).response_format_json
    }
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 15:14:40 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/issue-with-aws-generate-signature-method/m-p/9694#M3953</guid>
      <dc:creator>mab893</dc:creator>
      <dc:date>2025-04-21T15:14:40Z</dc:date>
    </item>
  </channel>
</rss>

