<?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: Securely pass credentials to app functions? in Developer Q&amp;A Forum</title>
    <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Securely-pass-credentials-to-app-functions/m-p/301539#M1695</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/103979"&gt;@Dimitris_G-K&lt;/a&gt;&amp;nbsp;you could &lt;A href="https://developer.dynatrace.com/develop/guides/data/store-app-settings/#define-a-settings-schema" target="_blank" rel="noopener"&gt;define a settings schema.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Look for &lt;A href="https://developer.dynatrace.com/develop/guides/data/store-app-settings/#define-a-settings-schema" target="_blank" rel="noopener"&gt;Use Secrets&lt;/A&gt; section.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "dynatrace": "1",
  "schemaId": "my-example-secrets",
  "version": "1.0.0",
  "displayName": "Allows you to configure connections to a fictional messaging service",
  "description": "",
  "multiObject": true,
  "maxObjects": 10,
  "maturity": "GENERAL_AVAILABILITY",
  "summaryPattern": "Messaging Service {url}",
  "ordered": false,
  "properties": {
    "isEnabled": {
      "displayName": "Enabled",
      "description": "Enable the integration of the messaging service",
      "type": "boolean",
      "default": false,
      "nullable": false
    },
    "description": {
      "displayName": "Description of the connection",
      "type": "text",
      "default": "",
      "nullable": false
    },
    "url": {
      "displayName": "URL",
      "description": "The URL of the messaging service",
      "type": "text",
      "default": "",
      "nullable": false,
      "forceSecretResubmission": true,
      "constraints": [
        {
          "type": "PATTERN",
          "customMessage": "The URL must be secure (https://) and must not contain a trailing slash",
          "pattern": "^https://.*[^/]$"
        }
      ]
    },
    "token": {
      "displayName": "Token",
      "description": "A secret token",
      "type": "secret",
      "default": "",
      "nullable": false
    }
  },
  "constraints": [
    {
      "type": "SECRET_RESUBMISSION",
      "customMessage": "For security reasons, please re-enter the token before saving the settings.",
      "checkAllProperties": false
    }
  ]
}&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 03 Jul 2026 00:03:44 GMT</pubDate>
    <dc:creator>DanielS</dc:creator>
    <dc:date>2026-07-03T00:03:44Z</dc:date>
    <item>
      <title>Securely pass credentials to app functions?</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Securely-pass-credentials-to-app-functions/m-p/301511#M1694</link>
      <description>&lt;P&gt;I'm building a Dynatrace app that includes a backend function which calls the Account Management API to fetch the DPS rate card. The function needs three credentials: `CLIENT_ID`, `CLIENT_SECRET`, and `ACCOUNT_URN`.&amp;nbsp; I have tried with .env file (`dt-app` does not load it at runtime, the variables come back empty ), also with&amp;nbsp;&amp;nbsp;adding a `function.env`&amp;nbsp; block to `app.config.json` (`CliOptions`reject it) and lastly the one that is working, hardcoding the values directly in the function file and adding it to `.gitignore`of course.&lt;/P&gt;&lt;P&gt;Is there an officially supported way to inject environment variables into Dynatrace app functions at deploy time, without hardcoding them in the source code?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2026 12:45:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Securely-pass-credentials-to-app-functions/m-p/301511#M1694</guid>
      <dc:creator>Dimitris_G-K</dc:creator>
      <dc:date>2026-07-02T12:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Securely pass credentials to app functions?</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Securely-pass-credentials-to-app-functions/m-p/301539#M1695</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/103979"&gt;@Dimitris_G-K&lt;/a&gt;&amp;nbsp;you could &lt;A href="https://developer.dynatrace.com/develop/guides/data/store-app-settings/#define-a-settings-schema" target="_blank" rel="noopener"&gt;define a settings schema.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Look for &lt;A href="https://developer.dynatrace.com/develop/guides/data/store-app-settings/#define-a-settings-schema" target="_blank" rel="noopener"&gt;Use Secrets&lt;/A&gt; section.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "dynatrace": "1",
  "schemaId": "my-example-secrets",
  "version": "1.0.0",
  "displayName": "Allows you to configure connections to a fictional messaging service",
  "description": "",
  "multiObject": true,
  "maxObjects": 10,
  "maturity": "GENERAL_AVAILABILITY",
  "summaryPattern": "Messaging Service {url}",
  "ordered": false,
  "properties": {
    "isEnabled": {
      "displayName": "Enabled",
      "description": "Enable the integration of the messaging service",
      "type": "boolean",
      "default": false,
      "nullable": false
    },
    "description": {
      "displayName": "Description of the connection",
      "type": "text",
      "default": "",
      "nullable": false
    },
    "url": {
      "displayName": "URL",
      "description": "The URL of the messaging service",
      "type": "text",
      "default": "",
      "nullable": false,
      "forceSecretResubmission": true,
      "constraints": [
        {
          "type": "PATTERN",
          "customMessage": "The URL must be secure (https://) and must not contain a trailing slash",
          "pattern": "^https://.*[^/]$"
        }
      ]
    },
    "token": {
      "displayName": "Token",
      "description": "A secret token",
      "type": "secret",
      "default": "",
      "nullable": false
    }
  },
  "constraints": [
    {
      "type": "SECRET_RESUBMISSION",
      "customMessage": "For security reasons, please re-enter the token before saving the settings.",
      "checkAllProperties": false
    }
  ]
}&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 03 Jul 2026 00:03:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Securely-pass-credentials-to-app-functions/m-p/301539#M1695</guid>
      <dc:creator>DanielS</dc:creator>
      <dc:date>2026-07-03T00:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Securely pass credentials to app functions?</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Securely-pass-credentials-to-app-functions/m-p/301551#M1696</link>
      <description>&lt;P&gt;Thank you very much, I'll check it out!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2026 08:01:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Securely-pass-credentials-to-app-functions/m-p/301551#M1696</guid>
      <dc:creator>Dimitris_G-K</dc:creator>
      <dc:date>2026-07-03T08:01:44Z</dc:date>
    </item>
  </channel>
</rss>

