quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.54k stars 2.61k forks source link

Make it possible to run shell commands while working with Dev UI #20628

Open sberyozkin opened 2 years ago

sberyozkin commented 2 years ago

Description

In some cases it would be great if it were possible to type the shell commands while also working with Dev UI.

For example, with Dev Services for Kerberos, here is what the docs recommend:

  1. do mvn quarkus:dev - Kerberos container has started
  2. and now a not very cool step - set KRB5_CONFIG to point to a generated KRB5 config file, type kinit and then curl --negotiate

However, if instead of 2, a user were able to go to DevUI and just type a user name and password then it would be great - in fact, since some default users are created it is already possible to add such Dev UI - but it is not possible to administer KDC beyond registering a few simple users/realm at the container startup.

So while in Dev UI, if I could, somewhere alongside the logging console, just type kadmin addprinc with whatever realm and password or keytab then kinit etc, and then in Dev UI type the user name/password and a handler would take care of negotiating with Quarkus, etc, then it would be nice. The container sets a system property pointing to this generated KDC file, so such shell commands running as part of the Quarkus Dev mode/UI process would pick it up.

Implementation ideas

No response

maxandersen commented 2 years ago

why not just ctrl-z, run kaadmin addprinc then fg ?

or open another terminal tab ?

opening up for running arbitrary shell commands via dev ui feels like an absolute security nightmare ?