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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add UI or CLI Interface to Register the Agent in the Event Protocol Registration Fails #17

Open
rwbaskette opened this issue Mar 5, 2024 · 2 comments

Comments

@rwbaskette
Copy link

We're using the Drata agent on Debian 12 Bookworm with the KDE Desktop. For one reason or another the deb install package works fine with Gnome but protocol registration fails to work under KDE causing my user not to be able to register their Drata Client. Instead the "auth-drata-agent" URI is opened a browser instance to "site can't be reached" error.

drata

We understand KDE and Debian are not officially supported, but it appears to be trying to be freedesktop compliant.

Thankfully the project is open source and we were able to read the code. To work around this issue, we wrote a script to register the client manually and after restart we had success.

Gist of workaround:
https://gist.github.com/rwbaskette/7474ac6f5e44d50ad2c1ca4c16e104c2

So, in order to skip this potential problem in future, can we get a way to register the client on the CLI for advanced users or a UI option to add the token from the website?

Thank You!

@mnrdrata
Copy link
Contributor

mnrdrata commented Mar 5, 2024

Thank you for letting us know. There are some specific Ubuntu+GNOME default expectations, but it shouldn't affect deep link behavior like this. If there is a specific error on protocol registration available, then it would be helpful to investigate.

There is an option menu accessible by holding alt/opt while brining up the menu that will allow you to manually register the Agent when deep link does not work. That would be the currently supported workaround. Please see

<span>{_t({ id: 'Register' })}</span>
and
setExtraMenu(evt.altKey ?? false);
.

The only concern with alternatives or scripts would be modifying the local storage file while the Agent is running.

@rwbaskette
Copy link
Author

rwbaskette commented Mar 6, 2024

Thank you for the workaround, that's much better than my brute force bash script.

What was funny is that it didn't exhibit any error, it just ignored the protocol registration. It was listed in ~/.config/mimeapps.list and when querying with xdg it seemed to ignore it. If we setup a new workstation w/ KDE we'll be more intentional and submit a feature request with better logs. Otherwise, stock Debian 12 + firmware with KDE as the chosen desktop works great in all other aspects and this may be a one-off.

Thank you for making the tool available here and on Linux!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants