<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[jsreport-fs-store-aws-s3-persistence plugin do not recognize AWS S3 credentials from environment variables]]></title><description><![CDATA[<p>Hi guys!</p>
<p>I'm trying to run JSReport with <code>jsreport-fs-store-aws-s3-persistence</code> plugin in a docker container.<br />
Content of my Dockerfile:</p>
<pre><code>FROM jsreport/jsreport:2.6.1

RUN npm i jsreport-fs-store jsreport-fs-store-aws-s3-persistence --save

COPY docker/configs/* /app/
</code></pre>
<p><code>configs</code> directory contains only 2 files <code>jsreport.config.json</code> and <code>license-key.txt</code>.</p>
<p>Here is content of <code>jsreport.config.json</code> file:</p>
<pre><code>{
  &quot;extensions&quot;: {
    &quot;fs-store&quot;: {
      &quot;persistence&quot;: {
        &quot;provider&quot;: &quot;aws-s3&quot;
      },
      &quot;compactionInterval&quot;: 20000
    },
    &quot;fs-store-aws-s3-persistence&quot;: {
      &quot;lock&quot;: {
        &quot;queueName&quot;: &quot;jsreport-lock.fifo&quot;
      }
    },
    &quot;chrome-pdf&quot;: {
      &quot;timeout&quot;: 30000
    },
    &quot;scripts&quot;: {
      &quot;timeout&quot;: 40000,
      &quot;strategy&quot;: &quot;http-server&quot;
    }
  },
  &quot;httpPort&quot;: 5488,
  &quot;store&quot;: {
    &quot;provider&quot;: &quot;fs&quot;
  },
  &quot;allowLocalFilesAccess&quot;: true,
  &quot;templatingEngines&quot;: {
    &quot;timeout&quot;: 10000,
    &quot;strategy&quot;: &quot;http-server&quot;
  },
  &quot;chrome&quot;: {
    &quot;timeout&quot;: 40000
  }
}
</code></pre>
<p>Content of <code>docker-compose.yml</code> file:</p>
<pre><code>---
version: '3.7'
services:
  jsreport:
    image: docker.company.com/jsreport
    container_name: jsreport
    restart: always
    ports:
      - &quot;5488:5488&quot;
    volumes:
      - jsreport:/jsreport
    environment:
      - extensions_authentication_admin_username=&lt;username&gt;
      - extensions_authentication_admin_password=&lt;password&gt;
      - extensions_authentication_cookieSession_secret=&lt;secret&gt;
      - extensions_fsStoreAwsS3Persistence_accessKeyId=&lt;accessKeyId&gt;
      - extensions_fsStoreAwsS3Persistence_secretAccessKey=&lt;secretAccessKey&gt;
      - extensions_fsStoreAwsS3Persistence_bucket=&lt;bucket&gt;
    tty: true
    stdin_open: true

volumes:
  jsreport:
</code></pre>
<p>When I run <code>docker-compose up</code> - I see the following output:</p>
<pre><code>jsreport    | nologin: this account is not available
jsreport    | 2020-03-03T16:47:28.864Z - info: Initializing jsreport@2.6.1 in production mode using configuration file: jsreport.config.json
jsreport    | 2020-03-03T16:47:28.867Z - info: Searching for available extensions in /app/
jsreport    | 2020-03-03T16:47:28.880Z - info: Extensions location cache not found, crawling directories
jsreport    | 2020-03-03T16:47:29.135Z - info: Found 37 extensions
jsreport    | 2020-03-03T16:47:29.292Z - info: Setting http-server strategy for rendering
jsreport    | 2020-03-03T16:47:29.405Z - info: Using extension authentication@2.3.0
jsreport    | 2020-03-03T16:47:29.429Z - info: Using extension aws-s3-storage@1.0.0
jsreport    | {}
jsreport    | 2020-03-03T16:47:29.550Z - error: Error when loading extension aws-s3-storage@1.0.0
jsreport    | Error: accessKeyId must be provided to jsreport-aws-s3-storage
jsreport    |     at Object.module.exports (/app/node_modules/jsreport-aws-s3-storage/lib/main.js:15:11)
jsreport    |     at Object._useOne (/app/node_modules/jsreport-core/lib/extensions/extensionsManager.js:194:75)
jsreport    |     at Object._useMany (/app/node_modules/jsreport-core/lib/extensions/extensionsManager.js:98:20)
jsreport    |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
jsreport    |     at async Reporter.init (/app/node_modules/jsreport-core/lib/reporter.js:209:7)
jsreport    | 2020-03-03T16:47:29.556Z - error: Error occured during reporter init Error: Error when loading extension aws-s3-storage@1.0.0
jsreport    | Error: accessKeyId must be provided to jsreport-aws-s3-storage
jsreport    |     at Object.module.exports (/app/node_modules/jsreport-aws-s3-storage/lib/main.js:15:11)
jsreport    |     at Object._useOne (/app/node_modules/jsreport-core/lib/extensions/extensionsManager.js:194:75)
jsreport    |     at Object._useMany (/app/node_modules/jsreport-core/lib/extensions/extensionsManager.js:98:20)
jsreport    |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
jsreport    |     at async Reporter.init (/app/node_modules/jsreport-core/lib/reporter.js:209:7)
jsreport    |     at Object._useOne (/app/node_modules/jsreport-core/lib/extensions/extensionsManager.js:216:15)
jsreport    |     at Object._useMany (/app/node_modules/jsreport-core/lib/extensions/extensionsManager.js:98:20)
jsreport    |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
jsreport    |     at async Reporter.init (/app/node_modules/jsreport-core/lib/reporter.js:209:7)
jsreport    | Error: Error when loading extension aws-s3-storage@1.0.0
jsreport    | Error: accessKeyId must be provided to jsreport-aws-s3-storage
jsreport    |     at Object.module.exports (/app/node_modules/jsreport-aws-s3-storage/lib/main.js:15:11)
jsreport    |     at Object._useOne (/app/node_modules/jsreport-core/lib/extensions/extensionsManager.js:194:75)
jsreport    |     at Object._useMany (/app/node_modules/jsreport-core/lib/extensions/extensionsManager.js:98:20)
jsreport    |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
jsreport    |     at async Reporter.init (/app/node_modules/jsreport-core/lib/reporter.js:209:7)
jsreport    |     at Object._useOne (/app/node_modules/jsreport-core/lib/extensions/extensionsManager.js:216:15)
jsreport    |     at Object._useMany (/app/node_modules/jsreport-core/lib/extensions/extensionsManager.js:98:20)
jsreport    |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
jsreport    |     at async Reporter.init (/app/node_modules/jsreport-core/lib/reporter.js:209:7)
</code></pre>
<p>Passing AWS S3 credentials through <code>jsreport.config.json</code> file is not allowed by the security policy in my company.</p>
<p>Can you please help me understand how to fix/bypass this issue?<br />
Thanks!</p>
]]></description><link>https://forum.jsreport.net/topic/1485/jsreport-fs-store-aws-s3-persistence-plugin-do-not-recognize-aws-s3-credentials-from-environment-variables</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 01:41:41 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/1485.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 04 Mar 2020 14:36:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to jsreport-fs-store-aws-s3-persistence plugin do not recognize AWS S3 credentials from environment variables on Wed, 04 Mar 2020 14:38:45 GMT]]></title><description><![CDATA[<p>Hi guys!</p>
<p>I'm trying to run JSReport with <code>jsreport-fs-store-aws-s3-persistence</code> plugin in a docker container.<br />
Content of my Dockerfile:</p>
<pre><code>FROM jsreport/jsreport:2.6.1

RUN npm i jsreport-fs-store jsreport-fs-store-aws-s3-persistence --save

COPY docker/configs/* /app/
</code></pre>
<p><code>configs</code> directory contains only 2 files <code>jsreport.config.json</code> and <code>license-key.txt</code>.</p>
<p>Here is content of <code>jsreport.config.json</code> file:</p>
<pre><code>{
  &quot;extensions&quot;: {
    &quot;fs-store&quot;: {
      &quot;persistence&quot;: {
        &quot;provider&quot;: &quot;aws-s3&quot;
      },
      &quot;compactionInterval&quot;: 20000
    },
    &quot;fs-store-aws-s3-persistence&quot;: {
      &quot;lock&quot;: {
        &quot;queueName&quot;: &quot;jsreport-lock.fifo&quot;
      }
    },
    &quot;chrome-pdf&quot;: {
      &quot;timeout&quot;: 30000
    },
    &quot;scripts&quot;: {
      &quot;timeout&quot;: 40000,
      &quot;strategy&quot;: &quot;http-server&quot;
    }
  },
  &quot;httpPort&quot;: 5488,
  &quot;store&quot;: {
    &quot;provider&quot;: &quot;fs&quot;
  },
  &quot;allowLocalFilesAccess&quot;: true,
  &quot;templatingEngines&quot;: {
    &quot;timeout&quot;: 10000,
    &quot;strategy&quot;: &quot;http-server&quot;
  },
  &quot;chrome&quot;: {
    &quot;timeout&quot;: 40000
  }
}
</code></pre>
<p>Content of <code>docker-compose.yml</code> file:</p>
<pre><code>---
version: '3.7'
services:
  jsreport:
    image: docker.company.com/jsreport
    container_name: jsreport
    restart: always
    ports:
      - &quot;5488:5488&quot;
    volumes:
      - jsreport:/jsreport
    environment:
      - extensions_authentication_admin_username=&lt;username&gt;
      - extensions_authentication_admin_password=&lt;password&gt;
      - extensions_authentication_cookieSession_secret=&lt;secret&gt;
      - extensions_fsStoreAwsS3Persistence_accessKeyId=&lt;accessKeyId&gt;
      - extensions_fsStoreAwsS3Persistence_secretAccessKey=&lt;secretAccessKey&gt;
      - extensions_fsStoreAwsS3Persistence_bucket=&lt;bucket&gt;
    tty: true
    stdin_open: true

volumes:
  jsreport:
</code></pre>
<p>When I run <code>docker-compose up</code> - I see the following output:</p>
<pre><code>jsreport    | nologin: this account is not available
jsreport    | 2020-03-03T16:47:28.864Z - info: Initializing jsreport@2.6.1 in production mode using configuration file: jsreport.config.json
jsreport    | 2020-03-03T16:47:28.867Z - info: Searching for available extensions in /app/
jsreport    | 2020-03-03T16:47:28.880Z - info: Extensions location cache not found, crawling directories
jsreport    | 2020-03-03T16:47:29.135Z - info: Found 37 extensions
jsreport    | 2020-03-03T16:47:29.292Z - info: Setting http-server strategy for rendering
jsreport    | 2020-03-03T16:47:29.405Z - info: Using extension authentication@2.3.0
jsreport    | 2020-03-03T16:47:29.429Z - info: Using extension aws-s3-storage@1.0.0
jsreport    | {}
jsreport    | 2020-03-03T16:47:29.550Z - error: Error when loading extension aws-s3-storage@1.0.0
jsreport    | Error: accessKeyId must be provided to jsreport-aws-s3-storage
jsreport    |     at Object.module.exports (/app/node_modules/jsreport-aws-s3-storage/lib/main.js:15:11)
jsreport    |     at Object._useOne (/app/node_modules/jsreport-core/lib/extensions/extensionsManager.js:194:75)
jsreport    |     at Object._useMany (/app/node_modules/jsreport-core/lib/extensions/extensionsManager.js:98:20)
jsreport    |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
jsreport    |     at async Reporter.init (/app/node_modules/jsreport-core/lib/reporter.js:209:7)
jsreport    | 2020-03-03T16:47:29.556Z - error: Error occured during reporter init Error: Error when loading extension aws-s3-storage@1.0.0
jsreport    | Error: accessKeyId must be provided to jsreport-aws-s3-storage
jsreport    |     at Object.module.exports (/app/node_modules/jsreport-aws-s3-storage/lib/main.js:15:11)
jsreport    |     at Object._useOne (/app/node_modules/jsreport-core/lib/extensions/extensionsManager.js:194:75)
jsreport    |     at Object._useMany (/app/node_modules/jsreport-core/lib/extensions/extensionsManager.js:98:20)
jsreport    |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
jsreport    |     at async Reporter.init (/app/node_modules/jsreport-core/lib/reporter.js:209:7)
jsreport    |     at Object._useOne (/app/node_modules/jsreport-core/lib/extensions/extensionsManager.js:216:15)
jsreport    |     at Object._useMany (/app/node_modules/jsreport-core/lib/extensions/extensionsManager.js:98:20)
jsreport    |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
jsreport    |     at async Reporter.init (/app/node_modules/jsreport-core/lib/reporter.js:209:7)
jsreport    | Error: Error when loading extension aws-s3-storage@1.0.0
jsreport    | Error: accessKeyId must be provided to jsreport-aws-s3-storage
jsreport    |     at Object.module.exports (/app/node_modules/jsreport-aws-s3-storage/lib/main.js:15:11)
jsreport    |     at Object._useOne (/app/node_modules/jsreport-core/lib/extensions/extensionsManager.js:194:75)
jsreport    |     at Object._useMany (/app/node_modules/jsreport-core/lib/extensions/extensionsManager.js:98:20)
jsreport    |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
jsreport    |     at async Reporter.init (/app/node_modules/jsreport-core/lib/reporter.js:209:7)
jsreport    |     at Object._useOne (/app/node_modules/jsreport-core/lib/extensions/extensionsManager.js:216:15)
jsreport    |     at Object._useMany (/app/node_modules/jsreport-core/lib/extensions/extensionsManager.js:98:20)
jsreport    |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
jsreport    |     at async Reporter.init (/app/node_modules/jsreport-core/lib/reporter.js:209:7)
</code></pre>
<p>Passing AWS S3 credentials through <code>jsreport.config.json</code> file is not allowed by the security policy in my company.</p>
<p>Can you please help me understand how to fix/bypass this issue?<br />
Thanks!</p>
]]></description><link>https://forum.jsreport.net/post/6764</link><guid isPermaLink="true">https://forum.jsreport.net/post/6764</guid><dc:creator><![CDATA[sergikoff]]></dc:creator><pubDate>Wed, 04 Mar 2020 14:38:45 GMT</pubDate></item><item><title><![CDATA[Reply to jsreport-fs-store-aws-s3-persistence plugin do not recognize AWS S3 credentials from environment variables on Invalid Date]]></title><description><![CDATA[<p>hi! is not the error coming actually from <code>jsreport-aws-s3-storage</code>?  so it seems you also need:</p>
<pre><code>- extensions_awsS3Storage_accessKeyId=&lt;accessKeyId&gt;
- extensions_awsS3Storage_secretAccessKey=&lt;secretAccessKey&gt;
- extensions_awsS3Storage_bucket=&lt;bucket&gt;
</code></pre>
]]></description><link>https://forum.jsreport.net/post/6765</link><guid isPermaLink="true">https://forum.jsreport.net/post/6765</guid><dc:creator><![CDATA[bjrmatos]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to jsreport-fs-store-aws-s3-persistence plugin do not recognize AWS S3 credentials from environment variables on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="https://forum.jsreport.net/uid/4">@bjrmatos</a> thank you!</p>
<p>I was able to find out the root cause of the issue.<br />
Long story short - we used old docker image with <code>jsreport-aws-s3-storage</code> plugin which is not used anymore. With a new docker image everything works well.</p>
]]></description><link>https://forum.jsreport.net/post/6770</link><guid isPermaLink="true">https://forum.jsreport.net/post/6770</guid><dc:creator><![CDATA[sergikoff]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>