Git Product home page Git Product logo

Comments (14)

universal avatar universal commented on June 15, 2024 1

Hello,

I updated my additions branch with the new api changes and it should work now! I'll try to split up the code and submit smaller pull requests!

from rubywarden.

raufis27 avatar raufis27 commented on June 15, 2024 1

@universal Thank you. Any chance that you can update KeePass script to work with latest API?

from rubywarden.

mprasil avatar mprasil commented on June 15, 2024 1

@raufis27 did you try my docker image here? It has Vault bundled in. You can just run a container, head to http://localhost:8080/ create account and import keepass export via the Vault tools. Then you can either continue using the image or grab the db and use whatever build of bitwarden-ruby server you prefer to use.

from rubywarden.

raufis27 avatar raufis27 commented on June 15, 2024 1

@mprasil After adopting bash scripts from your repo I was able to put everything together. I am running test environment under ubuntu server now. Thanks for your help.

from rubywarden.

mprasil avatar mprasil commented on June 15, 2024

Hey, @universal is working on this, there was a pull request #37 for that, but it looks like there are some issues to solve after the new API was introduced.

If you want to give it a try you can check his additions branch or you can try my docker image which is using latest Vault and code from additions branch.

from rubywarden.

mprasil avatar mprasil commented on June 15, 2024

Have you tried the Keepass import in Vault? It worked fine last time I've tried.

from rubywarden.

raufis27 avatar raufis27 commented on June 15, 2024

I can't get Web to work. Can someone share settings.json example ?
I changed api url to "http://1.....:4567" and "identityUri": "http://1......:33656", (also tried "http://1.....:4567"). But I get these errors:

[Error] XMLHttpRequest cannot load http://1....:4567/connect/token. Preflight response is not successful
[Error] Failed to load resource: Could not connect to the server. (token, line 0)
[Error] XMLHttpRequest cannot load http://...:33656/connect/token due to access control checks.

from rubywarden.

universal avatar universal commented on June 15, 2024

regarding keepass import:

since I'm not using keepass, I'm not interested in it. what you could easily do is check out an older version, import the data and then switch to the current version. Adopting the script is not really complicated and should be possible even if you have little to no knowledge of ruby.

web vault:

look at my additions branch, there is a tools/compile_webvault.script that adopts the json setting files correctly.

from rubywarden.

raufis27 avatar raufis27 commented on June 15, 2024

I tried tools/compile_webvault.script. Same problem - [Error] XMLHttpRequest cannot load http://1.....:4567/identity/connect/token. Preflight response is not successful
[Error] Failed to load resource: Preflight response is not successful (token, line 0)
[Error] XMLHttpRequest cannot load http://1....:4567/identity/connect/token. Preflight response is not successful

from rubywarden.

universal avatar universal commented on June 15, 2024

@raufis27 the web-vault does not work against this repository currently, you need to use my additions branch if you want it now! and be sure to specify the correct host for your env!

from rubywarden.

universal avatar universal commented on June 15, 2024

I checked the new web-vault (version 2.2) against the current master branch and the basic functionality works out of the box. I hope I will find some time over the next days to document and implement most methods required by the web interface for the management of ciphers / folders.

from rubywarden.

manojchandrashekar avatar manojchandrashekar commented on June 15, 2024

@universal Can you share your service URLs please?

Currently, I have:

apiService.setUrls({
            base: 'https://rubywarden.url',
            api: 'https://rubywarden.url/api',
            identity: 'https://rubywarden.url/identity',
});

But the web vault refuses to work. Android app, Firefox/Chrome extensions and the Windows app works fine with the base URL set to https://rubywarden.url

from rubywarden.

universal avatar universal commented on June 15, 2024

@manojchandrashekar iirc with the latest version of the web vault you don't need to change the urls, if you have the api hosted at the same domain. I put the web vault into the public folder and have sinatra serve that up. I currently only have the code at home and not pushed yet.

quoting from memory, so not 100% sure, but something along these lines worked for me:

  • git clone "web-vault-repository"
  • npm dist:selfhosted (or alike)
  • put dist/build into public folder
  • enable static file serving with sinatra for public folder in main app.rb for localhost development
  • in production one can serve the static files through nginx / ...

from rubywarden.

manojchandrashekar avatar manojchandrashekar commented on June 15, 2024

@universal Thank you. Will try that.

from rubywarden.

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.