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

feat: Add AWS Workload Identity Federation Support #414

Closed
wants to merge 17 commits into from

Conversation

BigTailWolf
Copy link
Contributor

This is a re-catch on the closed pull request:
#408

rbclark and others added 13 commits October 28, 2022 16:34
…st compatible with apply_auth_examples. ExternalAccount was not fully compatible with the other providers, this brings it in line and moves some common methods between the other provides and ExternalAccount into a module which is now included by the AWSClient provider and Signet::Auth::Client
…external account, create dedicated Connection helper module, other misc PR cleanup
@BigTailWolf BigTailWolf requested a review from a team as a code owner January 27, 2023 21:59
@BigTailWolf
Copy link
Contributor Author

@dazuma Would you please take a look at this. We need to have it approved and unblock the customer request.

@bajajneha27
Copy link
Contributor

@BigTailWolf I just noticed that the CLS is not signed. Can we please fix that?

lib/googleauth/base_client.rb Outdated Show resolved Hide resolved
lib/googleauth/base_client.rb Outdated Show resolved Hide resolved
lib/googleauth/external_account.rb Show resolved Hide resolved
lib/googleauth/external_account/aws_credentials.rb Outdated Show resolved Hide resolved
lib/googleauth/helpers/connection.rb Show resolved Hide resolved
spec/googleauth/apply_auth_examples.rb Show resolved Hide resolved
@BigTailWolf
Copy link
Contributor Author

BigTailWolf commented Mar 13, 2023

@BigTailWolf I just noticed that the CLS is not signed. Can we please fix that?

Hi Neha, I think the security check failed due to Ryan's CLA status. Mine is under Google CLA.
Yet I don't know how to remove Ryan (Scuffypuppy) from the check.

Would you please try to remove him from the googleapis/google-auth-library-ruby settings?

@BigTailWolf BigTailWolf marked this pull request as draft March 14, 2023 00:01
@BigTailWolf BigTailWolf marked this pull request as ready for review March 14, 2023 00:01
Copy link
Contributor Author

@BigTailWolf BigTailWolf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments addressed

Copy link
Contributor

@bajajneha27 bajajneha27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jin, I added a few more nit comments. Otherwise it looks good.

@@ -0,0 +1,114 @@
# Copyright 2022 Google, Inc.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit:

Suggested change
# Copyright 2022 Google, Inc.
# Copyright 2023 Google, Inc.

# See the License for the specific language governing permissions and
# limitations under the License.

require "time"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we're not using time here

module ExternalAccount
# Provides an entrypoint for all Exernal Account credential classes.
class Credentials
# The subject token type used for AWS external_account credentials.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: the comment should be above AWS_SUBJECT_TOKEN_TYPE

@@ -0,0 +1,381 @@
# Copyright 2022 Google, Inc.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit:

Suggested change
# Copyright 2022 Google, Inc.
# Copyright 2023 Google, Inc.

@@ -0,0 +1,140 @@
# Copyright 2022 Google, Inc.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Copyright 2022 Google, Inc.
# Copyright 2023 Google, Inc.

@@ -0,0 +1,99 @@
# Copyright 2022 Google LLC
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Copyright 2022 Google LLC
# Copyright 2023 Google LLC

spec/googleauth/apply_auth_examples.rb Show resolved Hide resolved
@@ -0,0 +1,511 @@
# Copyright 2022 Google, Inc.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Copyright 2022 Google, Inc.
# Copyright 2023 Google, Inc.

@@ -0,0 +1,228 @@
# Copyright 2022 Google, Inc.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Copyright 2022 Google, Inc.
# Copyright 2023 Google, Inc.

@@ -0,0 +1,86 @@
# Copyright 2022 Google, Inc.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Copyright 2022 Google, Inc.
# Copyright 2023 Google, Inc.

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

Successfully merging this pull request may close these issues.

None yet

4 participants