brownbeagle / gitauth Goto Github PK
View Code? Open in Web Editor NEWGit Authentication Server
License: GNU Affero General Public License v3.0
Git Authentication Server
License: GNU Affero General Public License v3.0
I must create directory with the ".git" suffix,because the grit gem require the bare git repository with a ".git" suffix.
Some users have many keys. We used to be able to add many keys to an account but we can't any more for some reason. I tried via the CLI.
Using a relatively fresh install of Ubuntu 9.10, and doing gem install perennial gets me perennial 1.2.5. Fine. But gitauth still doesn't like it. I get the following:
/usr/lib/ruby/gems/1.8/gems/gitauth-0.0.5.2/lib/gitauth.rb:25:in `require': no such file to load -- perennial (LoadError)
Any ideas why this may be?
The NAME_RE regexp in GitAuth::Repo is applied to the path value in self.create. The regexp disallows the use of the '/' character, which effectively blocks the creation of repositories with subpaths. Adding in the character appears to allow creation of such repositories just fine.
On a formerly working gitauth installation, I just tried adding a new user:
git@foobar:~$ gitauth add-user bar-baz /tmp/bar-baz.pub
/usr/lib/ruby/gems/1.8/gems/gitauth-1.0.3/lib/gitauth/user.rb:144:in `add_key': undefined method `key' for {}:Hash (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/gitauth-1.0.3/lib/gitauth/user.rb:127:in `add_key_or_file'
from /usr/lib/ruby/gems/1.8/gems/gitauth-1.0.3/lib/gitauth/user.rb:136:in `add_key_or_file!'
from /usr/lib/ruby/gems/1.8/gems/gitauth-1.0.3/lib/gitauth/user.rb:42:in `create'
from /usr/lib/ruby/gems/1.8/gems/gitauth-1.0.3/bin/gitauth:114:in `apply'
from /usr/lib/ruby/gems/1.8/gems/perennial-1.2.5/lib/perennial/application.rb:15:in `execute'
from /usr/lib/ruby/gems/1.8/gems/perennial-1.2.5/lib/perennial/application.rb:170:in `execute_command'
from /usr/lib/ruby/gems/1.8/gems/perennial-1.2.5/lib/perennial/application.rb:115:in `execute'
from /usr/lib/ruby/gems/1.8/gems/perennial-1.2.5/lib/perennial/application.rb:153:in `processing'
from /usr/lib/ruby/gems/1.8/gems/gitauth-1.0.3/bin/gitauth:4
from /usr/bin/gitauth:19:in `load'
from /usr/bin/gitauth:19
Some information on my system:
ruby --version: ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
git@foobar:~$ gem list
*** LOCAL GEMS ***
bundler (1.2.1)
daemons (1.1.9, 1.1.4)
eventmachine (1.0.0, 0.12.10)
fcgi (0.8.8)
gitauth (1.0.3)
haml (3.1.7, 3.1.2)
i18n (0.6.1, 0.4.2)
jammit (0.6.5)
open4 (1.3.0)
perennial (1.2.5)
Platform (0.4.0)
POpen4 (0.1.4)
rack (1.4.1, 1.3.2, 1.1.1, 1.0.1)
rack-protection (1.2.0)
rack-test (0.6.2)
rake (10.0.0, 0.8.7)
redgreen (1.2.2)
rr (1.0.4)
sinatra (1.3.3, 1.2.6)
thin (1.5.0, 1.2.11)
thoughtbot-shoulda (2.11.1)
tilt (1.3.3, 1.3.2)
yui-compressor (0.9.6)
This is a Debian 6 system using system ruby.
I have repositories stored in subpaths for organization. E.g.:
~git/repositories/repo_a.git
~git/repositories/archive/old_repo.git
~git/repositories/archive/old_repo_b.git
The Web view shows the repositories as a flat list, making it hard to navigate through the list. It'd be better if they grouped by path.
When adding a user, it should be possible to paste a key in instead of having to pass a path to a file.
It'd be nice if I could specify the path to my gitweb installation and then the gitauth Web interface added links to each of the repository names that went to the appropriate path for gitweb.
GitAuth should use bunder where applicable to make it easy to handle
dependencies across systems.
I successfully installed gitauth on my ubuntu server, but when I try and start it I get the following error:
Confirm Password:
[INFO] Starting up web server on 8998
/usr/lib/ruby/gems/1.8/gems/gitauth-0.0.5.2/lib/gitauth/web_app.rb:80:in `run': undefined local variable or method `host' for GitAuth::WebApp:Class (NameError)
from /usr/lib/ruby/gems/1.8/gems/perennial-1.2.5/lib/perennial/loader.rb:99:in `call'
from /usr/lib/ruby/gems/1.8/gems/perennial-1.2.5/lib/perennial/loader.rb:99:in `attempt_controller_action!'
from /usr/lib/ruby/gems/1.8/gems/perennial-1.2.5/lib/perennial/loader.rb:42:in `run!'
from /usr/lib/ruby/gems/1.8/gems/perennial-1.2.5/lib/perennial/loader.rb:26:in `run!'
from /usr/lib/ruby/gems/1.8/gems/perennial-1.2.5/lib/perennial/application.rb:90:in `apply'
from /usr/lib/ruby/gems/1.8/gems/perennial-1.2.5/lib/perennial/application.rb:15:in `execute'
from /usr/lib/ruby/gems/1.8/gems/perennial-1.2.5/lib/perennial/application.rb:170:in `execute_command'
from /usr/lib/ruby/gems/1.8/gems/perennial-1.2.5/lib/perennial/application.rb:115:in `execute'
from /usr/lib/ruby/gems/1.8/gems/perennial-1.2.5/lib/perennial/application.rb:153:in `processing'
from /usr/lib/ruby/gems/1.8/gems/gitauth-0.0.5.2/bin/gitauth:4
from /usr/bin/gitauth:19:in `loa
I cannot find anywhere how to add users to a group.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.