OK, thanks.

Are you working with a "modern" GoCD version, or is this still some older
19.x version?

-Chad

On Wed, Oct 30, 2024 at 5:28 AM Jason Smyth <jsm...@taqauto.com> wrote:

> Hi Chad,
>
> My tests were done using the "AWS Secrets Manager plugin for GoCD". There
> is nothing in go-server.log aside from what I posted in my initial message,
> and the secret plugin logs are empty. I can try turning up logging
> verbosity and repeating the tests, but I'm not sure how to do that in my
> Docker Compose test environment.
>
> I know that the secret plugin is working. I have pipelines configured in a
> working (because I used a password) config repo, and those pipelines depend
> on the same secret plugin. Additionally, the test connection button in the
> config repo modal returns errors if I intentionally misconfigure the secret.
>
> I don't think it has anything to do with the repository contents. I have
> replicated the behaviour in 2 different test systems, with multiple source
> repos, including some that are known to be good because they are accessed
> by other GoCD instances (albeit without secrets plugin references). I have
> also replicated the issue with both JSON and YAML repos, so I don't think
> the issue is with the individual configuration repository plugins.
>
> The config repos are not used as additional materials. I tested adding a
> config repo that pointed to a repo that _is_ used as a material for
> pipelines, and it works properly. I suspect that this means that the
> existing material configuration takes precedence and GoCD doesn't bother
> trying to re-clone, but I could be mistaken there.
>
> If I get a chance, I will try to see if I can replicate the issue with the
> "GoCD file based Secrets Plugin". That should provide some indication of
> whether the issue is in the secrets plugin or the core GoCD configuration
> repo module.
>
> Any other thoughts on things to try?
>
> Regards,
> Jason Smyth
>
>
> On Tuesday 22 October 2024 at 02:42:08 UTC-4 Chad Wilson wrote:
>
>> This sounds weird/unexpected but haven't had time to try reproducing this
>> myself. Which secrets plugin are you using? What's in the logs for the
>> server or the secret plugin itself?
>>
>> Is the same repo url also used for other materials (whether config repos
>> or normal materials)?
>>
>> On Fri, 18 Oct 2024, 23:29 Jason Smyth, <jsm...@taqauto.com> wrote:
>>
>>> Hello community,
>>>
>>>
>>>
>>> I encountered a strange issue whereby config repositories don’t seem to
>>> work properly when we try to supply the password via a secret instead of
>>> directly in the config repo config. The connection test succeeds, so the
>>> system is fetching the password from the secret at that point, but once
>>> saved, the config repo fails to parse.
>>>
>>>
>>>
>>> The error message (URL redacted) I see in the UI is:
>>>
>>>
>>>
>>> There was an error parsing this configuration repository:
>>>
>>> MODIFICATION CHECK FAILED FOR MATERIAL: URL:
>>> HTTPS://DEV.AZURE.COM/ORGANIZATION/TEAMPROJECT/_GIT/SANDBOX-JASONS,
>>> BRANCH: GOCD-PIPELINE-TEST
>>>
>>> NO PIPELINES ARE AFFECTED BY THIS MATERIAL, PERHAPS THIS MATERIAL IS
>>> UNUSED.
>>>
>>>
>>>
>>> Failed to load pipelines defined in this repository: There was an
>>> unknown error performing the operation. Possible reason (Not Found)
>>>
>>>
>>>
>>> The GoCD server log shows the following warning:
>>>
>>>
>>>
>>> 2024-10-18 10:47:01 jvm 1    | 2024-10-18 14:47:01,263 WARN
>>> [143@MessageListener for ConfigMaterialUpdateListener]
>>> ConfigMaterialUpdateListener:65 - [Config Material Update] Cannot update
>>> configuration part because material update has failed. Reason:
>>>
>>>
>>>
>>> When I switched from using a secret to directly supplying the password
>>> via the UI, the configuration repository started working as intended.
>>>
>>>
>>>
>>> I’m reasonably certain that this is a bug, but wanted to check with the
>>> community to confirm that using secrets in this way is supposed to be a
>>> supported use-case.
>>>
>>>
>>>
>>> Any thoughts or guidance would be appreciated.
>>>
>>>
>>>
>>> Regards,
>>>
>>> *Jason Smyth*
>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "go-cd" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to go-cd+un...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/go-cd/DM6PR16MB36715673328A38D68EA7AE8ECF402%40DM6PR16MB3671.namprd16.prod.outlook.com
>>> <https://groups.google.com/d/msgid/go-cd/DM6PR16MB36715673328A38D68EA7AE8ECF402%40DM6PR16MB3671.namprd16.prod.outlook.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "go-cd" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to go-cd+unsubscr...@googlegroups.com.
> To view this discussion visit
> https://groups.google.com/d/msgid/go-cd/5e1c44b3-be46-4764-8a39-fb45703f9193n%40googlegroups.com
> <https://groups.google.com/d/msgid/go-cd/5e1c44b3-be46-4764-8a39-fb45703f9193n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to go-cd+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/go-cd/CAA1RwH-qHq8U1qXRiZuupuh-T0ojU8j%3DTSbAt4VveEahAP8DMg%40mail.gmail.com.

Reply via email to