Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Fix akeyless bug that prevents releases and release failed build #106

Closed
arthurgousset opened this issue Feb 1, 2024 · 8 comments
Closed
Assignees

Comments

@arthurgousset
Copy link
Contributor

Hey @pputman12, the automatic release flow in this repo celo-org/rainbowkit-celo seems to have broken at the "Akeyless Get Secrets" step.

Error: can't get secret value: %!w(string={"error":"failed to get the value of the requested secrets: Desc: failed to obtain secret access credentials, Error: Desc: Failed to get secret access creds. Status 401 Unauthorized, Error: UnauthorizedAccess. Message: account id: acc-2gyt10uq3as8, access id: p-kf9vjzruht6l. unauthorized access for access id p-kf9vjzruht6l"}
)

Probably a relatively simple permissions issue. Could you help me fix the bug?

Priority: Not urgent, I'd say in the next 1-2 weeks is fine. The only impact this has is that a demo website (at rainbowkit-with-celo.vercel.app) cannot be deployed in the mean time. I made a small patch that failed to be deployed here:

@arthurgousset arthurgousset changed the title Fix AKeyless bug that prevents releases and release failed build Fix akeyless bug that prevents releases and release failed build Feb 1, 2024
@arthurgousset
Copy link
Contributor Author

Fixed by:

@arthurgousset
Copy link
Contributor Author

arthurgousset commented Feb 1, 2024

I'm not sure this is fixed @pputman-clabs, the workflow related to the PR broke:

Or am I missing something?

@pputman-clabs
Copy link
Contributor

No this is due to the branch restriction I setup which apparently isn't working. fixed now, I'll figure out whats wrong with the subclaims.

@arthurgousset
Copy link
Contributor Author

@pputman-clabs
Copy link
Contributor

Access role was overwritten, fixed now.

@pputman-clabs
Copy link
Contributor

To document the issues, we recently added a branch protection so only certain branches would be able to access the secret.

This adds a branch=main subclaim to the access role. This seems to have caused a problem where its not actually allowing the specified branch, so I've removed that restriction. I'll have to retest and see what subclaims the OIDC token is sending from github, to see why its not matching and running properly.

@arthurgousset
Copy link
Contributor Author

Thanks for the context, very useful 💯

@arthurgousset
Copy link
Contributor Author

This PR fixed the release workflow, since the subsequent workflows ran without errors.

For example:

image

On that basis, this ticket can be closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants