Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Former Member
4 years agoBiometric not working when executing the CLI from java
Hello
I'm building a java CLI that wraps op for some operations.
The issue was first observed when running a native binary compiled with Graalvm, but after investigation it is perfectly reproduc...
Former Member
4 years agoHey @pierrebeitz !
Apologies for the late reply here. I have an idea of what could be happening here. Could you maybe try a slight variation of the /bin/bash -c
workaround?
- Create a file
op.sh
with the following content:#!/bin/bash op ${@}
chmod +x ./op.sh
- Replace
op
withop.sh
in your Java code.
I would expect this to do the trick because in contrast to /bin/bash -c
, the above script does spawn op
as a child of bash
. That should satisfy the existing security check.
I must admit I'm getting curious about this line src/process_information/linux.rs:247 :)
Haha, so would I! It's actually a security check that existed before the CLI integration was built and this code was only used by our browser extensions. It still exists because taking out a security check is not easy and until now, it has never caused any problems. Now that we know it can cause some problems, we will re-evaluate whether it is still required. However, because we err on the side of caution when it comes to security, I cannot make any commitments on if and when this will happen if we can find a workaround.
Let me know if the above workaround fixes the problem!
Joris