<?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 Splunk Add-on for Google Cloud Platform: Update credentials via command line in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Google-Cloud-Platform-Update-credentials-via/m-p/398503#M48643</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We have implemented key rotation on GCP and we need to be able to set the new credentials via command line. &lt;BR /&gt;
Does anyone know how?&lt;BR /&gt;
We've found the password file, but credentials are encrypted and I'm not sure how I can encrypt the new creds and update the .conf file via command line.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Nov 2018 10:53:09 GMT</pubDate>
    <dc:creator>jypyking</dc:creator>
    <dc:date>2018-11-20T10:53:09Z</dc:date>
    <item>
      <title>Splunk Add-on for Google Cloud Platform: Update credentials via command line</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Google-Cloud-Platform-Update-credentials-via/m-p/398503#M48643</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We have implemented key rotation on GCP and we need to be able to set the new credentials via command line. &lt;BR /&gt;
Does anyone know how?&lt;BR /&gt;
We've found the password file, but credentials are encrypted and I'm not sure how I can encrypt the new creds and update the .conf file via command line.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 10:53:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Google-Cloud-Platform-Update-credentials-via/m-p/398503#M48643</guid>
      <dc:creator>jypyking</dc:creator>
      <dc:date>2018-11-20T10:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Google Cloud Platform: Update credentials via command line</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Google-Cloud-Platform-Update-credentials-via/m-p/398504#M48644</link>
      <description>&lt;P&gt;Were you able to sort this? I noticed if you populate the google_cloud_credentials.conf file with the contents of your JSON file, it will automatically repopulate the passwords.conf file as soon as you go to the Credentials page on UI. Not sure how can you trigger this process from the command line tho.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:21:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Google-Cloud-Platform-Update-credentials-via/m-p/398504#M48644</guid>
      <dc:creator>tyron_</dc:creator>
      <dc:date>2020-09-30T02:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Google Cloud Platform: Update credentials via command line</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Google-Cloud-Platform-Update-credentials-via/m-p/398505#M48645</link>
      <description>&lt;P&gt;So I think I found a way of doing this. You can just update the file &lt;CODE&gt;google_cloud_credentials.conf&lt;/CODE&gt; on &lt;BR /&gt;
&lt;CODE&gt;$SPLUNK_HOME/etc/apps/Splunk_TA_google-cloudplatform/local&lt;/CODE&gt; with the new value according to the &lt;A href="https://docs.splunk.com/Documentation/AddOns/released/GoogleCloud/Setupv2"&gt;docs&lt;/A&gt;, such as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;name&amp;gt;]
google_credentials={"type": "service_account","project_id": "my-project","private_key_id": "32a3be8f2f0dcfe967ea558e486deaereacfas0c2497e"}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After you do that, the &lt;CODE&gt;passwords.conf&lt;/CODE&gt; file will be automatically updated with the new values as soon as you go into the Configuration page on the Splunk Console. Restarting Splunk service also works if you wanna keep in the command line.&lt;/P&gt;

&lt;P&gt;Another option you have is forget about passwords altogether and use the GCE service account. Take a look at this post: &lt;A href="https://answers.splunk.com/answers/774312/use-gce-service-account.html"&gt;https://answers.splunk.com/answers/774312/use-gce-service-account.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 14:22:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Google-Cloud-Platform-Update-credentials-via/m-p/398505#M48645</guid>
      <dc:creator>tyron_</dc:creator>
      <dc:date>2019-11-20T14:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Google Cloud Platform: Update credentials via command line</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Google-Cloud-Platform-Update-credentials-via/m-p/758613#M82733</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/210713"&gt;@tyron_&lt;/a&gt;,&amp;nbsp;I tried with your option, it's not working really.&amp;nbsp;&lt;SPAN&gt;google_cloud_credentials.conf file is still have the SA json key as is and passwords.conf also not updated with the encrypted password. Did you tried this and working for you ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2026 03:46:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Google-Cloud-Platform-Update-credentials-via/m-p/758613#M82733</guid>
      <dc:creator>kasimanikandan</dc:creator>
      <dc:date>2026-02-23T03:46:08Z</dc:date>
    </item>
  </channel>
</rss>

