Giter VIP home page Giter VIP logo

Comments (36)

jvenant avatar jvenant commented on May 12, 2024

I load environment variables from the .gpg-agent-info file in the user home (can be change in the preferences)
But as said in the #8 issue, I don't support the environment variables directly yet.
I will fix that in the next release. It may fix your problem too.

from passff.

Yamakaky avatar Yamakaky commented on May 12, 2024

I configured the setting to my actual env file (/run/user/1000/gpg-agent-info for me), but the plugin doesn't seem to be able to access it.

from passff.

jvenant avatar jvenant commented on May 12, 2024

Can you try using "/run/user/1000/" in User home
and "gpg-agent-info" in Gpg agent info file

from passff.

jvenant avatar jvenant commented on May 12, 2024

Forget it. I just checked the code. The Gpg agent info file preference is not used

from passff.

Yamakaky avatar Yamakaky commented on May 12, 2024

Well, it may be a problem ^^

from passff.

jvenant avatar jvenant commented on May 12, 2024

Released : https://github.com/jvenant/passff/releases/tag/v1-beta-3

from passff.

Yamakaky avatar Yamakaky commented on May 12, 2024

Well, now the passwords list is empty, I can't see them at all ^^

from passff.

jvenant avatar jvenant commented on May 12, 2024

Oups ! Sorry about that. ^_^
Could you try to start Firefox with the console (firefox -jsconsole) and tell me if you see any thing about pass, page, browserOverlay or preferences files ?

from passff.

Yamakaky avatar Yamakaky commented on May 12, 2024

No, I can't see anything relevant...

from passff.

jvenant avatar jvenant commented on May 12, 2024

I added some log in the browser console in the last release
Could you try again using v1-beta-4
You can filter on "PassFF" to only see logs about PassFF
I should be able to retrieve more info. Especially environment info which I think is the origin of the problem.
The debug "Execute pass" log may also be interesting because it contains data used to execute pass

from passff.

Yamakaky avatar Yamakaky commented on May 12, 2024

Here : (I removed personnal data)

http://0bin.net/paste/nwGa-d1wTdODzLC1#Rbfn3CnEusMqXpOce8YNB5LwYfJjNowhmdbK4I9kWgs=

from passff.

jvenant avatar jvenant commented on May 12, 2024

Everything looks ok...?
You say that you have no entries in the "All" submenu ?

from passff.

Yamakaky avatar Yamakaky commented on May 12, 2024

Oups, I forgot to tell you, my second problem is resolved, I can see the "All" submenu, sorry. So many problems ! XD
The gpg-agent access problem is still here.

from passff.

jvenant avatar jvenant commented on May 12, 2024

Ok, so could you check in the log that gpgAgentEnv array match your gpg_agent_info
You should be able to see it on the line juste bellow the "[PassFF] preferences initialised".
Could you also check the environment array of the "Execute pass" lines is ok

from passff.

jvenant avatar jvenant commented on May 12, 2024

Sorry Yamakaky, I made a mistake in the last beta.
Try with v1-beta-5

from passff.

Yamakaky avatar Yamakaky commented on May 12, 2024

It's correct (but SSH_* variables are empty). I didn't filled the file location setting, so the GPG_... comes from the env.

from passff.

jvenant avatar jvenant commented on May 12, 2024

GPG_AGENT_INFO should be enough....
Are you sure your Firefox has enough privileges to access the GPG_AGENT_INFO socket ?
I can't see what's missing. It should work...

from passff.

Yamakaky avatar Yamakaky commented on May 12, 2024

Yes, I have read-write access to the socket in /tmp/gpg-*/. Isn't it a beta problem ? I use firefox 29.

from passff.

Yamakaky avatar Yamakaky commented on May 12, 2024

Strange : if I fill the gpg agent info file setting, the password list is empty... Does firefox restrict reading file in /run ? It works if I symlink the file to ~/gpg-agent-info

from passff.

jvenant avatar jvenant commented on May 12, 2024

Maybe, it's a good suggestion. Other people doesn't seems to have the same issue.
Looks like I'm not going to like FF 29 ^_^.

from passff.

jvenant avatar jvenant commented on May 12, 2024

I use an external module to launch pass : subprocess.
I'm going to update to the last version.... Who knows....

from passff.

jvenant avatar jvenant commented on May 12, 2024

if the password list is empty, it looks like the issue in on my side.
Pass don't use gpg-agent to get the passwords repository tree. It's pure file system browsing.
You don't have any error in the log in this case ?

from passff.

jvenant avatar jvenant commented on May 12, 2024

just release a new version to solve the issue about the gpg agent file
https://github.com/jvenant/passff/releases/tag/v1-beta-6

from passff.

Yamakaky avatar Yamakaky commented on May 12, 2024

No...

from passff.

jvenant avatar jvenant commented on May 12, 2024

You still have an empty password list if you set the pg agent info file setting to /run ?

from passff.

Yamakaky avatar Yamakaky commented on May 12, 2024

No, this bug is patched.

from passff.

jvenant avatar jvenant commented on May 12, 2024

No clue about this. I think it's something about your environment.
I use systemd too and I know it could be a little bit touchy. Especially concerning the user space.
Did you try launching gpg-agent using the old fashion way : manually or through a profile.d script ?

from passff.

Yamakaky avatar Yamakaky commented on May 12, 2024

Neither : through a systemd unit ^^
I tried, The env variable is OK everywhere else.

from passff.

TobiasBales avatar TobiasBales commented on May 12, 2024

I got an issue regarding $GPG_AGENT_INFO
it seems like passff does not use it anymore.
My $GPG_AGENT_INFO is set correct, the preference field is empty but I am prompted for my password every time.
With an older release (not sure which, now I am on beta 11) it used to work fine.
Any ideas?

from passff.

jvenant avatar jvenant commented on May 12, 2024

Could you take a look in the log on a line like "[PassFF] pass script execution ok"
You should be able to see the environment variables used to execute pass on the params object.

from passff.

TobiasBales avatar TobiasBales commented on May 12, 2024

[13:13:50.567] "[PassFF]" "Try to retrieve Gpg agent variables from file /home/tobias/"
and then gpgAgentEnv is null
If I pass in a file that does not exist it falls back to $GPG_AGENT_INFO

from passff.

jvenant avatar jvenant commented on May 12, 2024

I hope this issue is solved here : v1-beta-12

from passff.

TobiasBales avatar TobiasBales commented on May 12, 2024

Works fine now, thank you

from passff.

Yamakaky avatar Yamakaky commented on May 12, 2024

Guys, it found it. In my gpg-agent.conf, I enabled only pinentry-curse. My bad.

from passff.

jvenant avatar jvenant commented on May 12, 2024

Yes! That's a really good news.
I'm going to be so happy to close this issue

from passff.

Yamakaky avatar Yamakaky commented on May 12, 2024

^^

from passff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.