Kibana plugin dev against opendistro

Does anyone have any tips on setting up a dev environment for kibana plugin development against an opendistro-based cluster?

I’ve set up an upstream kibana dev environment and successfully built a test plugin but getting the upstream dev environment to talk to my opendistro cluster is giving me heartburn.

To anyone else trying to accomplish this:

After setting up an upstream kibana dev environment according to the instructions at https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#setting-up-your-development-environment installing the opendistro_security plugins for elasticsearch and kibana will result in a plugin dev environment that can interact with an opendistro cluster for testing opendistro-specific functionality during development.