From be9e9254bd60f4039414265b027fd6029714c3b4 Mon Sep 17 00:00:00 2001 From: Ben Griffiths <91725198+b3ngriffiths@users.noreply.github.com> Date: Fri, 6 Feb 2026 17:22:47 +0000 Subject: [PATCH] fix: remove access_token credential options Reverts the addition of `backstoryapi_access_token` and `ingestionapi_access_token` options introduced in v0.0.5. These additions were unnecessary as: - The existing `backstoryapi_credentials` and `ingestionapi_credentials` options already support both credential files and access tokens - Adding separate access_token options creates confusion about which option to use - No corresponding documentation was added explaining when to use one vs the other The V2 feed support functionality remains intact as those changes were unrelated to these authentication options. --- chronicle/provider.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chronicle/provider.go b/chronicle/provider.go index 48c5179..1d96fe4 100644 --- a/chronicle/provider.go +++ b/chronicle/provider.go @@ -303,7 +303,7 @@ func getAPIAuthOpts(d *schema.ResourceData) []chronicle.Option { if v, ok := d.GetOk("backstoryapi_credentials"); ok { opts = append(opts, chronicle.WithBackstoryAPICredentials(v.(string))) - } else if v, ok := d.GetOk("backstoryapi_access_token"); ok { + } else if v, ok := d.GetOk("backstoryapi_credentials"); ok { opts = append(opts, chronicle.WithBackstoryAPIAccessToken(v.(string))) } else { env := envSearch(chronicle.BackstoryAPIEnvVar) @@ -314,7 +314,7 @@ func getAPIAuthOpts(d *schema.ResourceData) []chronicle.Option { if v, ok := d.GetOk("ingestionapi_credentials"); ok { opts = append(opts, chronicle.WithIngestionAPICredentials(v.(string))) - } else if v, ok := d.GetOk("ingestionapi_access_token"); ok { + } else if v, ok := d.GetOk("ingestionapi_credentials"); ok { opts = append(opts, chronicle.WithIngestionAPIAccessToken(v.(string))) } else { env := envSearch(chronicle.IngestionAPIEnvVar)