Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(auth/gcp): ensure correct OAuth scope for Artifact Registry with service account #659

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

evict
Copy link
Contributor

@evict evict commented Nov 7, 2024

Adjusted OAuth scope to https://www.googleapis.com/auth/cloud-platform for compatibility with both service account and Workload Identity setups, resolving invalid scope errors when accessing Artifact Registry.

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

/kind flaky-test

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area library

/area cli

/area tests

/area examples

What this PR does / why we need it:
This PR fixes an issue with OAuth authentication when accessing Google Artifact Registry using a service account. By ensuring the correct scope (https://www.googleapis.com/auth/cloud-platform) is specified, this update resolves token retrieval errors and makes the authentication process compatible with both service account and Workload Identity configurations. This fix is essential for smooth integration with Artifact Registry, especially in environments leveraging Workload Identity on GKE.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

@poiana
Copy link
Contributor

poiana commented Nov 7, 2024

Welcome @evict! It looks like this is your first PR to falcosecurity/falcoctl 🎉

@poiana poiana added the size/XS label Nov 7, 2024
@evict
Copy link
Contributor Author

evict commented Nov 21, 2024

@zuc / @alacuku could you have a quick look at this PR and let me know if any changes are required?

@alacuku
Copy link
Member

alacuku commented Nov 21, 2024

@evict, commits are missing the signed-off-by.

…service account

Adjusted OAuth scope to `https://www.googleapis.com/auth/cloud-platform` for compatibility with both service account and Workload Identity setups, resolving invalid scope errors when accessing Artifact Registry.

Signed-off-by: Vincent <[email protected]>
@evict
Copy link
Contributor Author

evict commented Nov 21, 2024

@evict, commits are missing the signed-off-by.

Ah! Somehow interpreted that a core contributor had to sign these off. 😅 Fixed!

@poiana
Copy link
Contributor

poiana commented Nov 22, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: evict, leogr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana
Copy link
Contributor

poiana commented Nov 22, 2024

LGTM label has been added.

Git tree hash: 1835d502bac882c04311a835438c1bd5e697146f

@poiana poiana merged commit 063491c into falcosecurity:main Nov 22, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants