]> source.dussan.org Git - gitblit.git/log
gitblit.git
10 years agoSplit administration commands into a plugin, enhance plugin manager
James Moger [Sun, 30 Mar 2014 18:21:19 +0000 (14:21 -0400)]
Split administration commands into a plugin, enhance plugin manager

10 years agoImplement management commands in repositories dispatcher
James Moger [Fri, 28 Mar 2014 23:44:48 +0000 (19:44 -0400)]
Implement management commands in repositories dispatcher

10 years agoFinish user and team administration commands
James Moger [Fri, 28 Mar 2014 15:39:23 +0000 (11:39 -0400)]
Finish user and team administration commands

10 years agoDocumentation
James Moger [Fri, 28 Mar 2014 01:38:57 +0000 (21:38 -0400)]
Documentation

10 years agoImplement rename user/team and set field user/team commands
James Moger [Fri, 28 Mar 2014 00:26:38 +0000 (20:26 -0400)]
Implement rename user/team and set field user/team commands

10 years agoImprove dispatcher usage output
James Moger [Thu, 27 Mar 2014 19:51:12 +0000 (15:51 -0400)]
Improve dispatcher usage output

10 years agoImplemented teams dispatcher and management commands
James Moger [Thu, 27 Mar 2014 19:47:35 +0000 (15:47 -0400)]
Implemented teams dispatcher and management commands

10 years agoRevise user list columns to match web ui
James Moger [Thu, 27 Mar 2014 18:48:14 +0000 (14:48 -0400)]
Revise user list columns to match web ui

10 years agoPreserve key index when re-adding an existing key
James Moger [Thu, 27 Mar 2014 17:48:51 +0000 (13:48 -0400)]
Preserve key index when re-adding an existing key

10 years agoSimplify show user output
James Moger [Thu, 27 Mar 2014 17:42:23 +0000 (13:42 -0400)]
Simplify show user output

10 years agoAdd command to change the comment of a registered ssh public key
James Moger [Thu, 27 Mar 2014 17:13:29 +0000 (13:13 -0400)]
Add command to change the comment of a registered ssh public key

10 years agoAdd owned repositories and public key fingerprints to admin show user command
James Moger [Thu, 27 Mar 2014 17:06:14 +0000 (13:06 -0400)]
Add owned repositories and public key fingerprints to admin show user command

10 years agoDocumentation
James Moger [Thu, 27 Mar 2014 14:13:26 +0000 (10:13 -0400)]
Documentation

10 years agoRefine delete user method
James Moger [Thu, 27 Mar 2014 13:55:54 +0000 (09:55 -0400)]
Refine delete user method

10 years agoTrack the SSH public key used for a session and add a `keys which` command
James Moger [Thu, 27 Mar 2014 12:53:16 +0000 (08:53 -0400)]
Track the SSH public key used for a session and add a `keys which` command

10 years agoDelete ssh public keys when user is deleted
James Moger [Thu, 27 Mar 2014 01:51:28 +0000 (21:51 -0400)]
Delete ssh public keys when user is deleted

10 years agoImprove command help with formatting and usage examples
James Moger [Thu, 27 Mar 2014 01:33:21 +0000 (21:33 -0400)]
Improve command help with formatting and usage examples

10 years agoReformat CmdLineParser
James Moger [Thu, 27 Mar 2014 01:32:28 +0000 (21:32 -0400)]
Reformat CmdLineParser

10 years agoAdd --json flag to the list command for outputing JSON
James Moger [Sun, 23 Mar 2014 20:29:48 +0000 (16:29 -0400)]
Add --json flag to the list command for outputing JSON

10 years agoSupport querying in tickets ls and accept Object[][] for table data
James Moger [Sun, 23 Mar 2014 15:36:14 +0000 (11:36 -0400)]
Support querying in tickets ls and accept Object[][] for table data

10 years agoRefactored regex list command into a subclass
James Moger [Sun, 23 Mar 2014 03:07:09 +0000 (23:07 -0400)]
Refactored regex list command into a subclass

10 years agoRefactor list commands into an abstract class
James Moger [Sun, 23 Mar 2014 02:52:31 +0000 (22:52 -0400)]
Refactor list commands into an abstract class

10 years agoDraft tickets list command
James Moger [Sun, 23 Mar 2014 01:47:36 +0000 (21:47 -0400)]
Draft tickets list command

10 years agoSupport regex filtering the projects, repositories, and users list
James Moger [Sun, 23 Mar 2014 00:52:54 +0000 (20:52 -0400)]
Support regex filtering the projects, repositories, and users list

10 years agoImprove table rendering and uer details display
James Moger [Sun, 23 Mar 2014 00:37:51 +0000 (20:37 -0400)]
Improve table rendering and uer details display

10 years agoIntegrate a patched version of FlipTables and improve ls output
James Moger [Sat, 22 Mar 2014 20:34:27 +0000 (16:34 -0400)]
Integrate a patched version of FlipTables and improve ls output

10 years agoHandle ssh keys as objects, not strings, and improve the ls and rm key commands
James Moger [Sat, 22 Mar 2014 14:38:06 +0000 (10:38 -0400)]
Handle ssh keys as objects, not strings, and improve the ls and rm key commands

"gitblit keys ls" now defaults to showing an indexed list of fingerprints which almost matches the output of "sshadd -l".  The indexes are useful specifying key(s) to remove using "gitblit keys rm <index>".  This is an important improvement for key management.

10 years agoRevise dispatcher setup and command registration
James Moger [Fri, 21 Mar 2014 22:12:40 +0000 (18:12 -0400)]
Revise dispatcher setup and command registration

10 years agoCatch dispatchers registered through registerCommand
James Moger [Fri, 21 Mar 2014 21:57:21 +0000 (17:57 -0400)]
Catch dispatchers registered through registerCommand

10 years agoAdd administrative SSH command to manage Gitblit's runtime settings
James Moger [Fri, 21 Mar 2014 16:42:24 +0000 (12:42 -0400)]
Add administrative SSH command to manage Gitblit's runtime settings

10 years agoAllow command classes to manually display usage
James Moger [Fri, 21 Mar 2014 16:40:23 +0000 (12:40 -0400)]
Allow command classes to manually display usage

10 years agoChange hidden scope of the git dispatcher and the upload & receive commands
James Moger [Fri, 21 Mar 2014 15:48:20 +0000 (11:48 -0400)]
Change hidden scope of the git dispatcher and the upload & receive commands

10 years agoHide dispatcher from usage() if it has no visible commands or visible nested dispatchers
James Moger [Fri, 21 Mar 2014 15:47:30 +0000 (11:47 -0400)]
Hide dispatcher from usage() if it has no visible commands or visible nested dispatchers

10 years agoImprove Sparkleshare integration, but leave disabled for now
James Moger [Fri, 21 Mar 2014 15:29:11 +0000 (11:29 -0400)]
Improve Sparkleshare integration, but leave disabled for now

10 years agoGenerate an RSA and a DSA keypair and chmod 600 the pem files
James Moger [Thu, 20 Mar 2014 21:05:23 +0000 (17:05 -0400)]
Generate an RSA and a DSA keypair and chmod 600 the pem files

10 years agoAdd JGit gc command
David Ostrovsky [Wed, 19 Mar 2014 21:31:03 +0000 (22:31 +0100)]
Add JGit gc command

10 years agoReport identified user and command on command failure
David Ostrovsky [Wed, 19 Mar 2014 20:43:41 +0000 (21:43 +0100)]
Report identified user and command on command failure

Fix commented out code. Now failure is reported as:

  Internal server error (user admin) during gitblit version

10 years agoAllow registration of a command instance
James Moger [Wed, 19 Mar 2014 17:22:34 +0000 (13:22 -0400)]
Allow registration of a command instance

10 years agoFix exception handling for account with no public keys
James Moger [Wed, 19 Mar 2014 16:34:00 +0000 (12:34 -0400)]
Fix exception handling for account with no public keys

10 years agoRefactor 'gitblit' commands into several nested dispatchers
James Moger [Wed, 19 Mar 2014 16:11:53 +0000 (12:11 -0400)]
Refactor 'gitblit' commands into several nested dispatchers

10 years agoSupport local aliases within a dispatcher and warn on registration collisions
James Moger [Wed, 19 Mar 2014 16:10:16 +0000 (12:10 -0400)]
Support local aliases within a dispatcher and warn on registration collisions

10 years agoClear instantiated commands and dispatchers from the dispatcher on destroy()
James Moger [Wed, 19 Mar 2014 16:08:00 +0000 (12:08 -0400)]
Clear instantiated commands and dispatchers from the dispatcher on destroy()

10 years agoImprove isServingRepositories check
James Moger [Wed, 19 Mar 2014 13:04:50 +0000 (09:04 -0400)]
Improve isServingRepositories check

10 years agoExclude SSH repository urls from anonymous users
James Moger [Wed, 19 Mar 2014 12:51:17 +0000 (08:51 -0400)]
Exclude SSH repository urls from anonymous users

10 years agoExpose new property: sshCommandStartThreads
David Ostrovsky [Wed, 19 Mar 2014 07:38:35 +0000 (08:38 +0100)]
Expose new property: sshCommandStartThreads

10 years agodoAuthenticate() method doesn't need to be protected
David Ostrovsky [Wed, 19 Mar 2014 07:38:07 +0000 (08:38 +0100)]
doAuthenticate() method doesn't need to be protected

10 years agoBe more verbose on gathering plugin's extension points
David Ostrovsky [Wed, 19 Mar 2014 07:11:51 +0000 (08:11 +0100)]
Be more verbose on gathering plugin's extension points

10 years agoDispatchCommand should be the ExtensionPoint
James Moger [Tue, 18 Mar 2014 21:40:35 +0000 (17:40 -0400)]
DispatchCommand should be the ExtensionPoint

10 years agoHook-up comprensive command cleanup (destroy)
James Moger [Tue, 18 Mar 2014 21:34:01 +0000 (17:34 -0400)]
Hook-up comprensive command cleanup (destroy)

10 years agoGet the command context with an accessor instead of direct field access
James Moger [Tue, 18 Mar 2014 21:25:17 +0000 (17:25 -0400)]
Get the command context with an accessor instead of direct field access

10 years agoStyle: changed manager order to reflect dependency chain
James Moger [Tue, 18 Mar 2014 21:21:47 +0000 (17:21 -0400)]
Style: changed manager order to reflect dependency chain

Managers are mostly declared in dependency order.  Managers with fewer dependencies are first.  They are likely to be components of other managers. Also eliminated import artifacts from the cherry-pick.

10 years agoExpose SSH command as plugin extension point
David Ostrovsky [Tue, 18 Mar 2014 07:33:42 +0000 (08:33 +0100)]
Expose SSH command as plugin extension point

Example plugin is provided [1].

[1] https://github.com/davido/gitblit-cookbook-plugin

10 years agoAdd plugins/extension infrastructure
David Ostrovsky [Mon, 10 Mar 2014 00:50:49 +0000 (01:50 +0100)]
Add plugins/extension infrastructure

Plugins are stored in `${baseFolder}/plugins` and are loaded
during startup by the PluginManager.

A plugin defines it's metadata in META-INF/MANIFEST.MF:

    Plugin-Class: com.gitblit.plugins.cookbook.CookbookPlugin
    Plugin-Dependencies: foo, bar
    Plugin-Id: gitblit-plugin
    Plugin-Provider: John Doe
    Plugin-Version: 1.0

Plugins can define extension points that can be implemented
by other plugins and they can depend on other plugins:

    Plugin-Dependencies: foo, bar

During the load phase, a directed acyclic graph is built and the loading
order of the dependency chain is reversed using a topological sort;
parent followed by children. The parent plugin classloader is the
combined classloader of all parent plugins.

Change-Id: I738821fa2bff02a5dbe339a944cc7e3c4dd8e299

10 years agoRevise dispatchers and move command classes
James Moger [Tue, 18 Mar 2014 02:27:58 +0000 (22:27 -0400)]
Revise dispatchers and move command classes

10 years agoCreate a simple ls-users admin command
James Moger [Tue, 18 Mar 2014 01:54:07 +0000 (21:54 -0400)]
Create a simple ls-users admin command

10 years agoElevate the public key manager to a top-level manager
James Moger [Tue, 18 Mar 2014 01:30:46 +0000 (21:30 -0400)]
Elevate the public key manager to a top-level manager

10 years agoCreate git and gitblit dispatchers
James Moger [Tue, 18 Mar 2014 01:23:44 +0000 (21:23 -0400)]
Create git and gitblit dispatchers

10 years agoShow root commands in welcome shell and improve command registration
James Moger [Tue, 18 Mar 2014 01:07:49 +0000 (21:07 -0400)]
Show root commands in welcome shell and improve command registration

10 years agoAdd a simple repository list command
James Moger [Sun, 16 Mar 2014 20:04:07 +0000 (16:04 -0400)]
Add a simple repository list command

10 years agoPass IGitblit into the SSH command context
James Moger [Sun, 16 Mar 2014 20:02:57 +0000 (16:02 -0400)]
Pass IGitblit into the SSH command context

10 years agoAdd a welcome shell
James Moger [Sun, 16 Mar 2014 19:17:58 +0000 (15:17 -0400)]
Add a welcome shell

Conflicts:
src/main/java/com/gitblit/transport/ssh/SshDaemon.java

10 years agoAdd SSH daemon test
David Ostrovsky [Sun, 16 Mar 2014 21:55:30 +0000 (22:55 +0100)]
Add SSH daemon test

10 years agoPrevent double authentication for the same public key
David Ostrovsky [Sun, 16 Mar 2014 17:28:03 +0000 (18:28 +0100)]
Prevent double authentication for the same public key

Openssh client sends two requests, one without a key signature to verify
that the public key is acceptable and the second one with the signature
after having loaded the private key and signed some data for actual
verification.

To prevent that the PublickeyAuthenticator#authenticate is called twice
cache the authentication status for session and public key.  Implement
SessionListener to clean up the cache entry when session is destroyed.

This is a workaround for SSHD bug [1].

Inspired-By: Guillaume Nodet <gnodet@apache.org>
[1] https://issues.apache.org/jira/browse/SSHD-300

10 years agoFix message formatting
David Ostrovsky [Sat, 15 Mar 2014 07:42:26 +0000 (08:42 +0100)]
Fix message formatting

Change-Id: I1ee1e4135525b7064c4f8e159ed9d8cbef510a81

10 years agoMove dispatcher creation to SshCommandFactory and revise permission
James Moger [Fri, 14 Mar 2014 21:48:23 +0000 (17:48 -0400)]
Move dispatcher creation to SshCommandFactory and revise permission
checks

10 years agoRename server session classes
James Moger [Fri, 14 Mar 2014 19:36:55 +0000 (15:36 -0400)]
Rename server session classes

10 years agoRename AbstractGitCommand->BaseGitCommand
James Moger [Fri, 14 Mar 2014 19:18:24 +0000 (15:18 -0400)]
Rename AbstractGitCommand->BaseGitCommand

10 years agoMerge AbstractSshCommand and BaseCommand into a single class
James Moger [Fri, 14 Mar 2014 19:17:00 +0000 (15:17 -0400)]
Merge AbstractSshCommand and BaseCommand into a single class

10 years agoRename authenticators for clarity
James Moger [Fri, 14 Mar 2014 18:55:38 +0000 (14:55 -0400)]
Rename authenticators for clarity

10 years agoMove cache to IKeyManager and implement isStale() in FileKeyManager
James Moger [Fri, 14 Mar 2014 18:53:26 +0000 (14:53 -0400)]
Move cache to IKeyManager and implement isStale() in FileKeyManager

10 years agoStart SSH usage documentation
James Moger [Fri, 14 Mar 2014 16:55:06 +0000 (12:55 -0400)]
Start SSH usage documentation

10 years agoSupport admin commands that respect user permissions
James Moger [Fri, 14 Mar 2014 16:52:50 +0000 (12:52 -0400)]
Support admin commands that respect user permissions

10 years agoSupport hidden commands and hide create-repo and review
James Moger [Fri, 14 Mar 2014 16:28:24 +0000 (12:28 -0400)]
Support hidden commands and hide create-repo and review

10 years agoAdd add-key and rm-key commands that apply only to the current user
James Moger [Fri, 14 Mar 2014 16:20:45 +0000 (12:20 -0400)]
Add add-key and rm-key commands that apply only to the current user

10 years agoRenamed SshContext->SshCommandContext for clarity of purpose
James Moger [Fri, 14 Mar 2014 16:49:50 +0000 (12:49 -0400)]
Renamed SshContext->SshCommandContext for clarity of purpose

10 years agoRename & simplify SshSession->SshDaemonClient
James Moger [Fri, 14 Mar 2014 16:43:55 +0000 (12:43 -0400)]
Rename & simplify SshSession->SshDaemonClient

10 years agoRevise SSH public key integration with AuthenticationManager
James Moger [Fri, 14 Mar 2014 16:10:25 +0000 (12:10 -0400)]
Revise SSH public key integration with AuthenticationManager

10 years agoSimplify version command and output
James Moger [Fri, 14 Mar 2014 16:15:57 +0000 (12:15 -0400)]
Simplify version command and output

10 years agoDisregard comment/description for add/remove in FileKeyManager
James Moger [Fri, 14 Mar 2014 16:15:04 +0000 (12:15 -0400)]
Disregard comment/description for add/remove in FileKeyManager

10 years agoFix deleteAllKeys method signature
James Moger [Fri, 14 Mar 2014 16:12:26 +0000 (12:12 -0400)]
Fix deleteAllKeys method signature

10 years agoFix incorrect displayed SSH transport permission
James Moger [Fri, 14 Mar 2014 16:11:20 +0000 (12:11 -0400)]
Fix incorrect displayed SSH transport permission

10 years agoRemove unused idGenerator from the SshSessionFactory
James Moger [Fri, 14 Mar 2014 16:54:34 +0000 (12:54 -0400)]
Remove unused idGenerator from the SshSessionFactory

10 years agoDisplay the selected SSH backend in the daemon startup message
James Moger [Fri, 14 Mar 2014 16:53:56 +0000 (12:53 -0400)]
Display the selected SSH backend in the daemon startup message

10 years agoAdd review SSH command
David Ostrovsky [Tue, 11 Mar 2014 23:35:57 +0000 (00:35 +0100)]
Add review SSH command

Change-Id: Ia03c15608814346522c548ff2439ee672ccb0d28

10 years agoAdd set account SSH command
David Ostrovsky [Tue, 11 Mar 2014 20:44:38 +0000 (21:44 +0100)]
Add set account SSH command

Change-Id: I33d343dd34f93eaff9581d54f825f8c486e7c17f

10 years agoAdd support for NIO2 IoSession
David Ostrovsky [Thu, 13 Mar 2014 23:34:50 +0000 (00:34 +0100)]
Add support for NIO2 IoSession

Starting from version 0.9.0 Apache SSHD project added support for NIO2
IoSession. To use the new NIO2 session the `backend` option must be set
to `NIO2`.

By default, `NIO2`.

Change-Id: I06cf92b02e80ecf9e8bfbd9f6d6d623dfe3ccff3

10 years agoBump SSHD version to 0.10.1
David Ostrovsky [Thu, 13 Mar 2014 22:39:26 +0000 (23:39 +0100)]
Bump SSHD version to 0.10.1

Change-Id: Ic7e204fb7ee2eb172f4c8424fc3d4b7e6c631ddd

10 years agoExtract key manager interface and implement a file-based key manager
James Moger [Sun, 9 Mar 2014 03:09:18 +0000 (22:09 -0500)]
Extract key manager interface and implement a file-based key manager

10 years agoListen for ssh clients on all interfaces, by default
James Moger [Sun, 9 Mar 2014 01:48:28 +0000 (20:48 -0500)]
Listen for ssh clients on all interfaces, by default

10 years agoCleanup imports
James Moger [Sun, 9 Mar 2014 01:34:26 +0000 (20:34 -0500)]
Cleanup imports

10 years agoDisplay ssh clone urls in the repository url panel
James Moger [Sun, 9 Mar 2014 01:12:36 +0000 (20:12 -0500)]
Display ssh clone urls in the repository url panel

10 years agoEstablish ssh keys folder, support multiple keys, revise key authenticator
James Moger [Sun, 9 Mar 2014 00:43:15 +0000 (19:43 -0500)]
Establish ssh keys folder, support multiple keys, revise key authenticator

10 years agoRefer to receive pack client requests as 'client'
James Moger [Sun, 9 Mar 2014 01:34:55 +0000 (20:34 -0500)]
Refer to receive pack client requests as 'client'

10 years agoAuthenticate SSH upload pack
James Moger [Sun, 9 Mar 2014 00:10:53 +0000 (19:10 -0500)]
Authenticate SSH upload pack

10 years agoMove Git daemon into different package
James Moger [Sun, 9 Mar 2014 00:10:20 +0000 (19:10 -0500)]
Move Git daemon into different package

10 years agoSSHD: Add support for git pack commands
David Ostrovsky [Sat, 22 Feb 2014 20:17:03 +0000 (21:17 +0100)]
SSHD: Add support for git pack commands

Add git-upload-pack and git-receive-pack commands.

Conflicts:
src/main/java/com/gitblit/manager/ServicesManager.java
src/main/java/com/gitblit/transport/ssh/CommandDispatcher.java
src/main/java/com/gitblit/transport/ssh/SshCommandFactory.java

Change-Id: I8c057b41f1dfad6d004e6aa91f96c8c673be9be2

10 years agoFix command dispatching
David Ostrovsky [Wed, 26 Feb 2014 07:19:44 +0000 (08:19 +0100)]
Fix command dispatching

DispatchCommand is supposed to be nested:

  ssh server gitblit version --verbose --format json

means that first the command that is seen by dispatching process is
"gitblit". Dispatch command look in its commands map for this command
and dispatch the rest of the command and options and arguments to this
command, version in this example.

Change-Id: I8ef8e0e369922c793ca7ad36c1a8f76b0206baa7

10 years agoEliminate use of Dagger and do not create inner classes
James Moger [Sat, 22 Feb 2014 21:19:03 +0000 (16:19 -0500)]
Eliminate use of Dagger and do not create inner classes

This change outlines somethings I'd like to see in your latest code.

1. Elimination of Dagger
2. Less noise from inner class instantiation
3. Formalizing filesystem location for keys instead of Unix-y /tmp/
4. Password authentication as alternative to Key authentication

Change-Id: I7a76e1811ad7cd545444fd8b59bbe8c4f45ccfec

10 years agoConvert SshDaemon to unix format
David Ostrovsky [Sat, 22 Feb 2014 16:08:49 +0000 (17:08 +0100)]
Convert SshDaemon to unix format

Change-Id: Icb415c2bc62321ddd0ae08445d97f1f8102adee8

10 years agoFactor out methods from SshCommandServer to SshDaemon
David Ostrovsky [Sat, 22 Feb 2014 16:03:37 +0000 (17:03 +0100)]
Factor out methods from SshCommandServer to SshDaemon

Change-Id: I02d545a8ab68b06d733ad8e7ed476767a34aa244