-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
init os-login sshkey #3221
init os-login sshkey #3221
Conversation
Hello! I am a robot who works on Magic Modules PRs. I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review. They will authorize it to run through our CI pipeline, which will generate downstream PRs. Thanks for your contribution! A human will be with you soon. @rileykarson, please review this PR or find an appropriate assignee. |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 6 files changed, 628 insertions(+), 2 deletions(-)) |
2 similar comments
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 6 files changed, 628 insertions(+), 2 deletions(-)) |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 6 files changed, 628 insertions(+), 2 deletions(-)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good so far! I made a first pass at reviewing.
Hi today i have an issue. Is it possible for this API to use something like "impersonate-service-account" |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 6 files changed, 616 insertions(+), 2 deletions(-)) |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 7 files changed, 570 insertions(+), 2 deletions(-)) |
Got it- we can probably auth as the service account like in this: https://www.terraform.io/docs/providers/google/d/datasource_google_service_account_access_token.html Alternatively https://www.terraform.io/docs/providers/google/d/datasource_google_client_openid_userinfo.html returns the current user. |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 7 files changed, 582 insertions(+), 2 deletions(-)) |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 7 files changed, 597 insertions(+), 2 deletions(-)) |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 7 files changed, 591 insertions(+), 2 deletions(-)) |
Hi, |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 9 files changed, 617 insertions(+), 10 deletions(-)) |
HI, I don't understand because the resp object is empty but not when i run the same API from here And how can i decode properly the |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 9 files changed, 597 insertions(+), 10 deletions(-)) |
1 similar comment
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 9 files changed, 597 insertions(+), 10 deletions(-)) |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 9 files changed, 623 insertions(+), 10 deletions(-)) |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 9 files changed, 629 insertions(+), 10 deletions(-)) |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 9 files changed, 597 insertions(+), 10 deletions(-)) |
Now i have a new error on import:
I have no If i set the
|
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 9 files changed, 597 insertions(+), 10 deletions(-)) |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 10 files changed, 603 insertions(+), 10 deletions(-)) |
|
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 10 files changed, 610 insertions(+), 10 deletions(-)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a couple small nitpicks- I've just gotta verify the test in CI to merge, and the changes in sourcerepo are causing a compiler error stopping that from working.
@@ -2,4 +2,10 @@ if v, ok := d.GetOkExists("pubsub_configs"); !isEmptyValue(reflect.ValueOf(pubsu | |||
log.Printf("[DEBUG] Calling update after create to patch in pubsub_configs") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this file inadvertently got modified, can you revert the changes?
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 9 files changed, 604 insertions(+), 10 deletions(-)) |
Co-Authored-By: Riley Karson <[email protected]>
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 9 files changed, 604 insertions(+), 10 deletions(-)) |
1 similar comment
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 9 files changed, 604 insertions(+), 10 deletions(-)) |
@rileykarson can i have a status of the review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry! I didn't seem to have gotten the notification from your last update. Looks good, just one small thing- can you add the resource to the sidebar? It'll be a single-resource product similar to https://github.com/GoogleCloudPlatform/magic-modules/blob/master/third_party/terraform/website-compiled/google.erb#L289-L295, with most of the values drawn from https://github.com/modular-magician/terraform-provider-google/compare/auto-pr-3221-old..auto-pr-3221#diff-4781117125c62204e8a4e030cc2ef7f0R15-R20.
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 10 files changed, 612 insertions(+), 10 deletions(-)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for your contribution!
* init os-login sshkey Signed-off-by: Sébastien GLON <[email protected]> * Fix naming + example * Fix endpoint * clean build folder * Apply suggestions from code review Co-Authored-By: Riley Karson <[email protected]> * Fix review * Add post_create * Add reference doc * Try to put user on url request * Fix user * Get the default userinfo email * Update products/oslogin/api.yaml Co-Authored-By: Riley Karson <[email protected]> * Apply suggestions from code review * revert url_param_only * creation fixed * Work except import * Add id_format and import_format * Add Id * Fix id * Update source_repo_repository_update.go.erb * Update source_repo_repository_update.go.erb * revert * Apply suggestions from code review Co-Authored-By: Riley Karson <[email protected]> * Add sidebar link Co-authored-by: Sébastien GLON <[email protected]> Co-authored-by: Riley Karson <[email protected]>
Create new terraform resource oslogin
SSHPublicKey
hashicorp/terraform-provider-google#5389
User email is set by default with the current userinfO
User email is provided with
impersonated
provider andgoogle_client_openid_userinfo
example here
Release Note Template for Downstream PRs (will be copied)