Secure team password manager with command-line client and API
Ruby CSS HTML CoffeeScript Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
lib
log
public
spec
vendor/assets
.gitignore
.rspec
Gemfile
Gemfile.lock
Guardfile
README.rdoc
Rakefile
Todo
clear_cache.sh
config.ru
rdoc.sh

README.rdoc

TARKIN

Yet Another Team Password manager? Yes, but there are some unique features:

  • scriptability: API to get passwords from Tarkin in your scripts (using authentication token, no need to store username and password in a script)

  • unixability: command-line client and interactive shell (no need to run browser if you need some of your passwords!) as well as Ruby Gem with easy-to-use client class

  • high security: asynch AES-256 used to store passwords: password is encrypted with group public key, and group private key is ciphered by your public key, so to decrypt the stored password you need your own password to get your private key, which can decrypt the group private key, which is able to decipher the stored password.

  • manageability: standard users/groups model, web-based management (so far)

  • accessibility: mobile-friendly web (see demo on tarkin.tg.pl)

View online demo on tarkin.tg.pl

Security

All passwords are crypted with AES-256 with the group public key. Group private key is ciphered by the user public key. User private key is crypte with user password. Thus, to decrypt the password, you must have user password - this password decrypts the user private key, with which system decrypts the groups private key, which is used to decrypt the password… Sounds complicated? Well, it is completely transparent for the user - you just need to remember your password.

This means that the only group members can read the stored passwords. There is no way to read it even if you have an access to the whole database. This also means that you can't loose you password to the system. There is no way to retrieve lost password.

Modern UI compatible with mobile

UI is based on Zurb Foundation and it is compatible with mobiles.

Security UI

Passwords are shown only when highlighted. System downloads it on demand via Ajax, so they are not stored in HTML.

Quick search

Search for items and directories using Unix-like wildcard

Unix-style directories

You can group your passwords in Unix-like directories and use this folders in URLs to go directly to specified path.

Online edition

Online administration

See demo on tarkin.tg.pl to find out more

Command-line tool

Command-line client is included into Tarkin Gem - rubygems.org/gems/tarkin - a Ruby Client for Tarkin Server. Find out more on github.com/grych/tarkin-client

$ gem install tarkin

API

Tarkin API allows you to use it with your own scripts, so you don't need to store passwords with plain-text anymore and you have one centralized system for all passwords, so you need to change it only in one place.

To not store a password to tarkin in the script, you should generate a token, then you can use this token to authorize:

resp = conn.get("http://localhost:3000/_api/v1/_authorize", email: "email0@example.com", password="password0")
token = resp.body if resp.status == 200
#=> "vwbtYjEtZl4IY31HBfJbXD31EUdTLv4stnzVQG8AiiZDagQ3s2IIKcRp..."

in Shell:

OS_TOKEN=`curl "http://localhost:3000/_api/v1/_authorize?email=email0@example.com&password=password0"`

or, using http authentication:

OS_TOKEN=`curl --user email0@example.com:password0 "http://localhost:3000/_api/v1/_authorize"`

then to get specified password use URL: host/_api/v1/Unix-like-path

PASSWORD=`curl -H "Authorization: Token token=$OS_TOKEN" "http://localhost:3000/_api/v1/db/postgres/root"`

See all API documentation on www.tg.pl/tarkin

Installation

Ruby

Install Ruby version 2.2 or higher, as described in Ruby for Admins

Rails

Get Rails 4.2.1 from rubyonrails.com

Get Tarking from Github

git clone git@github.com:grych/tarkin.git

Bundler

gem install bundler
cd tarkin
bundle install

Create first user, group and required root directory

vi config/database.yml
bundle exec rake db:migrate
rails console
u = User.create first_name: "John", last_name: "Doe", email: 'email@examaple.com', password: 'password'
u.add Group.new(name: 'Admins')
Directory.create(name: 'root')

Compile assets, generate key and start server

RAILS_ENV=production bin/rake assets:precompile
bundle exec rake secret
export TARKIN_SECRET_KEY_BASE=<generated secret>
bundle exec rails server -d -e production --binding 127.0.0.1 -p 5000

Author

This software is written by Tomek 'Grych' Gryszkiewicz. Do not hestitate to contact me at grych@tg.pl or visit my web page.

License

The MIT License (MIT)

Copyright © 2015 Tomek Gryszkiewicz <grych@tg.pl>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.