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

sudo sh -c 'echo -e "[1password]\nname=1Password Stable Channel\nbaseurl=https://downloads.1password.com/linux/rpm/stable/\$basearch\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=\"https://downloads.1password.com/linux/keys/1password.asc\"" > /etc/yum.repos.d/1password.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.

1 Like

About password manager integration, it needs the secret relates portal but there is no one. The portal develop is far behind flatpak itself.

What you mean? On this post all works it signs ssh as should the 1password extension can’t see 1password-cli of use that. But on this way you can get authentication prompts when using stored SSH keys