vespa-engine / pyvespa

Python API for https://vespa.ai, the open big data serving engine
https://pyvespa.readthedocs.io/
Apache License 2.0
79 stars 24 forks source link

Use `vespacli` to generate key/cert and fix prod deployment test #804

Closed thomasht86 closed 2 weeks ago

thomasht86 commented 3 weeks ago

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Closing #795

After this PR, generating key/cert through pyvespa will be deprecated. (This has been warned as deprecation previously). If vespa CLI is installed (either through pip or other method), this will be used to generate key/cert if none is found in the default locations. If none is found and vespa CLI is not installed, user will be prompted to install using pip.

This became a bit involved, but took the opportunity to improve a few things regarding auth and prod_deployment as well.

Next step will be to update notebooks and docs with simplified approach, ref #795 description. As docs are updated independent of release, we should release a new version when docs are published.