Skip to content

Conversation

salrashid123
Copy link
Contributor

Adds ability to signblob and issue gcs signedurl using impersonated credentials

Fixes #1443 🦕


added test cases to check generic client.sign()

  googleauth
    googleauth
      for impersonated types
        for impersonated credentials signing
          ✔ should use IAMCredentials signBlob endpoint when impersonation is used


  impersonated
    ✔ should sign a blob

coverage skips signer call when used with GCS clients (eg, googleauth.ts 1031-1032)

impersonated.ts | 100 | 63.63 | 100 | 100 | 122-125,127,188-195 googleauth.ts | 95.23 | 87.09 | 100 | 95.23 | 221,245-246,316,321-324,452-457,548-551,553-556,558-561,563-566,576-583,591-594,780-781,884,914-915,927-928,1031-1032 `

@salrashid123 salrashid123 requested review from a team as code owners November 24, 2023 13:18
@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Nov 24, 2023
@salrashid123 salrashid123 changed the title Add impersonated signer feat: Add impersonated signer Nov 24, 2023
Copy link
Contributor

@danielbankhead danielbankhead left a comment

Choose a reason for hiding this comment

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

LGTM; a few minor nits

@danielbankhead danielbankhead added kokoro:force-run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Nov 29, 2023
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 29, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Nov 29, 2023
@danielbankhead danielbankhead added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 29, 2023
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 29, 2023
@danielbankhead danielbankhead merged commit cb78a1b into googleapis:main Nov 29, 2023
@salrashid123 salrashid123 deleted the add-impersonated-signer branch November 29, 2023 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Impersonated credentials should implement sign() capability

4 participants