Giter Site home page Giter Site logo

Comments (15)

freddydk avatar freddydk commented on May 22, 2024 1

If you have an environment called QA - you need to create a secret in that environment called AUTHCONTEXT.
If you don't use the environments feature in GitHub, the secrets needs to be called QA-AUTHCONTEXT to match the environment.

from al-go.

freddydk avatar freddydk commented on May 22, 2024

Found the bug, will deploy a fix for this tomorrow.

Reason is that your GitHub account is a free account - it works if you have a Teams or Enterprise account. But then again - the environments setting was introduced in order to work when using a free account - it of course must work.

from al-go.

freddydk avatar freddydk commented on May 22, 2024

Shipped in v1.2 - if you update your AL-Go system files, you should be good to go.

from al-go.

curateideas avatar curateideas commented on May 22, 2024

Works now, thank you for your immediate response.

Have a follow-up issue with the secrets. After investiation will create another issue for that or a PR.

from al-go.

curateideas avatar curateideas commented on May 22, 2024

Second case is the issue: the corresponding script searches for "AUTHCONTEXT" in the repository secrets instead of "QA_AUTHCONTEXT". This way there is only one connection to an environment that can be configured per Repo.

In PublishToEnvironment.yaml:

image

I'm testing a fix in a fork at this moment.

from al-go.

freddydk avatar freddydk commented on May 22, 2024

Right on top - it is looking for QA-AUTHCONTEXT (line 88) - needs to be a dash, not an underscore, sorry

from al-go.

curateideas avatar curateideas commented on May 22, 2024

Dash is not allowed for a repo secret name since it seems it is reserved for concatenation of the environment secrets:

image

from al-go.

freddydk avatar freddydk commented on May 22, 2024

bummer - it works in an Azure KeyVault - will make a fix for supporting dash or underscore.
Thanks for reporting.

from al-go.

freddydk avatar freddydk commented on May 22, 2024

Did not test the PR yet - but this should add support for looking for both QA-AUTHCONTEXT and QA_AUTHCONTEXT
Probably the same solution as you have been looking at in your fork.

You can merge update your fork and deploy new al-go repos in your org to test this (I assume you use your own local repos as al-go templates if you have a fork:-))

from al-go.

curateideas avatar curateideas commented on May 22, 2024

Again: Thanks, Freddy! Will check this out.

from al-go.

curateideas avatar curateideas commented on May 22, 2024

Now working as expected!

I made nearly the same changes but struggled with the End2End Tests, before submitting the PR. There's a learning curve for me...

from al-go.

freddydk avatar freddydk commented on May 22, 2024

yeah - I will document what you need in order to run the End 2 end tests - they are fairly heavy - they test out a ton of various things including upgrades from all prior versions to the new...

from al-go.

curateideas avatar curateideas commented on May 22, 2024

Is the fix deployed to AL-Go-PTE already? I see no PR in my project after Update System Files.

from al-go.

freddydk avatar freddydk commented on May 22, 2024

Not yet - will do so today or tomorrow

from al-go.

freddydk avatar freddydk commented on May 22, 2024

BTW - there is another way this can be fixed.
You can create a setting called QA-AUTHCONTEXTSECRETNAME with the value QA_AUTHCONTEXT

There is a generic way in AL-Go to rename secrets by adding a setting called <secret>SECRETNAME

The reason for this is that multiple repositories can share a KeyVault and might have different secrets (like this)
I will still checkin the fix to utilize the _ as that is clearly a bug.

from al-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.