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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to set gRPC ports for debugging #13300

Open
solomonshorser opened this issue Jun 27, 2023 · 4 comments
Open

Ability to set gRPC ports for debugging #13300

solomonshorser opened this issue Jun 27, 2023 · 4 comments
Labels
area/cli UX of using the CLI (args, output, logs) kind/enhancement Improvements or new features

Comments

@solomonshorser
Copy link

Hello!

  • Vote on this issue by adding a 馃憤 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

The problem: I'm debugging a plugin which I think is sending the wrong data to a cloud service. I've tried debugging with a proxy application to intercept and inspect the messages being sent to the cloud service, but I am running into problems since it looks like pulumi's components communicate with each other using gRPC with random port numbers, and this proxy breaks pulumi.

The requested feature: The ability to specify fixed port numbers for gRPC so that I can monitor and inspect messages with applications such as Charles Proxy. Maybe a flag like this: --grpc_port 5544

I'm open to other ideas, if they will let me use a proxy to inspect the messages that pulumi is sending and receiving.

Affected area/feature

CLI

@solomonshorser solomonshorser added kind/enhancement Improvements or new features needs-triage Needs attention from the triage team labels Jun 27, 2023
@Frassle
Copy link
Member

Frassle commented Jun 28, 2023

There's an envvar you can set to tell pulumi to attach to a specific port for a specific provider (#8979) if you set PULUMI_DEBUG_PROVIDERS=provideName:portNumber the engine will attach to that provider rather than starting a new instance of the provider on a random port.

@solomonshorser
Copy link
Author

@Frassle Cool! I'll give that a try. Is there a list of other useful pulumi environment variables?

@Frassle
Copy link
Member

Frassle commented Jun 28, 2023

pulumi env will print a list with descriptions.

@justinvp justinvp added area/cli UX of using the CLI (args, output, logs) and removed needs-triage Needs attention from the triage team labels Jun 28, 2023
@solomonshorser
Copy link
Author

pulumi env will print a list with descriptions.

Cool feature, though it seems to be missing PULUMI_CONFIG_PASSPHRASE and PULUMI_DEBUG_PROVIDERS - or does it only print env vars that are not set?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli UX of using the CLI (args, output, logs) kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

3 participants