It’s Cybersecurity Awareness Month! Join our interactive training session, or learn about security and AI from 1Password experts.
Forum Discussion
ThePhatLe
4 months agoNew Contributor
How To enable Flatpak VScode, toolbox and 1password to integrate together
Since i have been struggling on this way too long and it was keeping me out of developing and my setup workflow wasent working i was determinate to quit first and go to mutable systems, but something kept me pushing my limits and figure how this total setup can be done and i have finally cracked the code to make flatpak VScode to connect to toolbox as user and enable 1password authentication to commits and secrets.
The journey wasent easy and i think i got more gray hair than i should of have, but after i got it working spending literally a week to test wipe, broken kinoite, wipe again now it works.
First lets start that on this system at this point you still need 1password and 1password-cli as layered and that is only layers on my setup with nvidia rest are systemd-sysext and flatpaks.
First add 1 password repo
Edit the repo file and remove ” from gpgkey
sudo nano /etc/yum.repos.d/1password.repo
Then just rpm-fusion install 1password 1password-cli
Reboot
Login to your vaults and app as normal
Now comes the parts what kept me frustrated for days wahs that the old wrappers we used to use with podman-host dont work anymore and vscode cant see containers and if we layer VScode it is on root and this wont work. So what i actually found there is the script that makes everything for you and it works
https://github.com/owtaylor/toolbox-vscode
This made things so much better follow the installation method and then enter you toolbox container and type code and magick happens
Now comes the 1password issues where i got it 80% working but it never worked since it was looking that
/opt/1Password/op-ssh-sign': No such file or directory error:fatal: failed to write commit object
So lets start getting Flatpak permissions and this was taken from Dave Jansson guide https://davejansen.com/using-vscode-flatpak-with-1password-ssh-git-signing/
Thank you for that and follow the guide as it explains all what needs to be done
Then comes the last part to fix the signing issue and that took me way too long time to figure and solution is so simple. Go to your git config file and just remove the line that says program = /opt/1password/op-ssh-sign and you are all good all commits are now working and 1password app prompts authentication when it detects commits or authentication is needed.
Not yet any additional tweaks linked guide and what I wrote works perfectly at this moment.
Setup is pretty straight forward and just remember to check wrapper for 1password is executable and local gitconfig has no program line then all works.
Biggest part is the VScode flatpaks script that makes everything to enable vscode-server as user not root and other tweaks
This took me so long to figure and combine multiple guides and trial and errors. But now it works with toolbox distrobox I haven't tested since toolbox is already installed and script is made for toolbox and fedora immutable systems
2 Replies
- ThePhatLeNew Contributor
Not yet any additional tweaks linked guide and what I wrote works perfectly at this moment.
Setup is pretty straight forward and just remember to check wrapper for 1password is executable and local gitconfig has no program line then all works.
Biggest part is the VScode flatpaks script that makes everything to enable vscode-server as user not root and other tweaks
This took me so long to figure and combine multiple guides and trial and errors. But now it works with toolbox distrobox I haven't tested since toolbox is already installed and script is made for toolbox and fedora immutable systems
- 1P_Phil
Moderator
Hi ThePhatLe ,
Thanks a fantastic success story! Congratulations!
Thank you for sharing and any time please let us know how it is going and if you had to make any additional tweaks :D
Cheers,
Phil & the team!