<?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 Pass secret in spark config when value is in form a.b.c={{secrets/scope/secret}} in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/pass-secret-in-spark-config-when-value-is-in-form-a-b-c-secrets/m-p/77438#M1348</link>
    <description>&lt;P&gt;I am configuring the Cluster for a spark-submit task and I am trying to specify `spark.executor.extraJavaOptions a.b.c={{secrets/scope/secret}}` but the literal&amp;nbsp;{{secrets/scope/secret}} is being passed in rather than the secret value itself.&lt;/P&gt;&lt;P&gt;I know the convention for secrets is `spark.conf.something&amp;nbsp;{{secrets/scope/secret}}` when the value is the secret itself and this substitution works fine for me in similar cases. Given my value in the above is a.b.c={{secrets/scope/secret}} the secret substitution is not working. I have also tried with an environment variable ie `spark.executor.extraJavaOptions a.b.c=${MY_ENV_VAR}` but this is also not working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect that given the&amp;nbsp;{{secrets/scope/secret}} does not have a space character before it but instead `=` the substitution isn't working properly.&lt;/P&gt;&lt;P&gt;Any suggestions on how to achieve this would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2024 11:03:23 GMT</pubDate>
    <dc:creator>macmiller1</dc:creator>
    <dc:date>2024-07-09T11:03:23Z</dc:date>
    <item>
      <title>Pass secret in spark config when value is in form a.b.c={{secrets/scope/secret}}</title>
      <link>https://community.databricks.com/t5/administration-architecture/pass-secret-in-spark-config-when-value-is-in-form-a-b-c-secrets/m-p/77438#M1348</link>
      <description>&lt;P&gt;I am configuring the Cluster for a spark-submit task and I am trying to specify `spark.executor.extraJavaOptions a.b.c={{secrets/scope/secret}}` but the literal&amp;nbsp;{{secrets/scope/secret}} is being passed in rather than the secret value itself.&lt;/P&gt;&lt;P&gt;I know the convention for secrets is `spark.conf.something&amp;nbsp;{{secrets/scope/secret}}` when the value is the secret itself and this substitution works fine for me in similar cases. Given my value in the above is a.b.c={{secrets/scope/secret}} the secret substitution is not working. I have also tried with an environment variable ie `spark.executor.extraJavaOptions a.b.c=${MY_ENV_VAR}` but this is also not working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect that given the&amp;nbsp;{{secrets/scope/secret}} does not have a space character before it but instead `=` the substitution isn't working properly.&lt;/P&gt;&lt;P&gt;Any suggestions on how to achieve this would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 11:03:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/pass-secret-in-spark-config-when-value-is-in-form-a-b-c-secrets/m-p/77438#M1348</guid>
      <dc:creator>macmiller1</dc:creator>
      <dc:date>2024-07-09T11:03:23Z</dc:date>
    </item>
  </channel>
</rss>

