pillar-svnman.git
20 months agoNicer permission handling
Sybren A. Stüvel [Thu, 9 Nov 2017 10:01:04 +0000 (11:01 +0100)]
Nicer permission handling

20 months agoStarted working on granting access to repo users via web interface.
Sybren A. Stüvel [Wed, 8 Nov 2017 16:30:18 +0000 (17:30 +0100)]
Started working on granting access to repo users via web interface.

20 months agoCheck project access on repo deletion too
Sybren A. Stüvel [Wed, 8 Nov 2017 16:29:55 +0000 (17:29 +0100)]
Check project access on repo deletion too

20 months agoRemoved svn-specifics cap from admin role
Sybren A. Stüvel [Wed, 8 Nov 2017 15:42:41 +0000 (16:42 +0100)]
Removed svn-specifics cap from admin role

We have no use for them yet.

20 months agoAdded some web UI so that sidebar and index etc. are at least functional.
Sybren A. Stüvel [Wed, 8 Nov 2017 15:14:15 +0000 (16:14 +0100)]
Added some web UI so that sidebar and index etc. are at least functional.

20 months agoAdded a lot of unittests and fixed some small issues
Sybren A. Stüvel [Wed, 8 Nov 2017 14:05:08 +0000 (15:05 +0100)]
Added a lot of unittests and fixed some small issues

20 months agoCheck project for PUT access before allowing repository creation.
Sybren A. Stüvel [Wed, 8 Nov 2017 11:59:43 +0000 (12:59 +0100)]
Check project for PUT access before allowing repository creation.

We'll need to save the project later, and without PUT access this is not
possible. Better check it before creating the actual repository.

20 months agoStore the repository ID as returned by SVNMan
Sybren A. Stüvel [Wed, 8 Nov 2017 11:59:09 +0000 (12:59 +0100)]
Store the repository ID as returned by SVNMan

This makes it possible for SVNMan to perform some manipulation on the
repository ID.

20 months agoMake sure that the test project can be saved via Eve
Sybren A. Stüvel [Wed, 8 Nov 2017 11:57:10 +0000 (12:57 +0100)]
Make sure that the test project can be saved via Eve

20 months agoFixed mistake in RepoDescription definition
Sybren A. Stüvel [Wed, 8 Nov 2017 11:56:52 +0000 (12:56 +0100)]
Fixed mistake in RepoDescription definition

20 months agoBugfix for defaultdict
Sybren A. Stüvel [Wed, 8 Nov 2017 09:36:11 +0000 (10:36 +0100)]
Bugfix for defaultdict

20 months agoOnly use $2y$ BCrypt hash type markers
Sybren A. Stüvel [Wed, 8 Nov 2017 09:36:02 +0000 (10:36 +0100)]
Only use $2y$ BCrypt hash type markers

The contents of $2a$, $2b$ and $2y$ are exactly the same, but $2y$
indicates that certain bugs from the past have been fixed. Since these bugs
were never in the Python implementation of BCrypt, we don't care. However,
Apache only accepts $2y$ in its htpasswd file.

20 months agoDifferent variables for API endpoint and svn checkout URL.
Sybren A. Stüvel [Wed, 8 Nov 2017 09:35:02 +0000 (10:35 +0100)]
Different variables for API endpoint and svn checkout URL.

The API endpoint could be reachable via another route (like a VPN
connection between the Pillar and SVN hosts), whereas the svn checkout
URL is meant for external use.

20 months agoAllow deletion of repositories
Sybren A. Stüvel [Fri, 3 Nov 2017 17:00:16 +0000 (18:00 +0100)]
Allow deletion of repositories

20 months agoAllow creation of SVN repositories
Sybren A. Stüvel [Fri, 3 Nov 2017 16:38:43 +0000 (17:38 +0100)]
Allow creation of SVN repositories

20 months agoRemoved superfluous f''
Sybren A. Stüvel [Fri, 3 Nov 2017 14:56:03 +0000 (15:56 +0100)]
Removed superfluous f''

20 months agoMore logging
Sybren A. Stüvel [Fri, 3 Nov 2017 14:55:53 +0000 (15:55 +0100)]
More logging

20 months agoAdded CLI command for repo deletion
Sybren A. Stüvel [Fri, 3 Nov 2017 14:55:42 +0000 (15:55 +0100)]
Added CLI command for repo deletion

20 months agoAdded creation of SVN repos
Sybren A. Stüvel [Fri, 3 Nov 2017 13:35:50 +0000 (14:35 +0100)]
Added creation of SVN repos

20 months agoWrap all HTTP errors from SVNMan API in RemoteErrors
Sybren A. Stüvel [Fri, 3 Nov 2017 13:35:37 +0000 (14:35 +0100)]
Wrap all HTTP errors from SVNMan API in RemoteErrors

This ensures that errors on the API side aren't sent as-is to the
Pillar web client. For example, a 404 indicating that a repository
cannot be found shouldn't automatically result in a 404 sent to the
browser.

20 months agoUsing utility function attrs_extra.string()
Sybren A. Stüvel [Fri, 3 Nov 2017 13:34:38 +0000 (14:34 +0100)]
Using utility function attrs_extra.string()

20 months agoRemoved superflous (object)
Sybren A. Stüvel [Fri, 3 Nov 2017 13:34:17 +0000 (14:34 +0100)]
Removed superflous (object)

20 months agoMoved function around
Sybren A. Stüvel [Fri, 3 Nov 2017 12:55:29 +0000 (13:55 +0100)]
Moved function around

20 months agoAdded modify_access call + CLI interface
Sybren A. Stüvel [Fri, 3 Nov 2017 12:55:13 +0000 (13:55 +0100)]
Added modify_access call + CLI interface

20 months agoDon't include password in repr()
Sybren A. Stüvel [Fri, 3 Nov 2017 12:44:05 +0000 (13:44 +0100)]
Don't include password in repr()

20 months agoRaise RepoAlreadyExists exception instead of generic HTTP exception
Sybren A. Stüvel [Fri, 3 Nov 2017 12:43:54 +0000 (13:43 +0100)]
Raise RepoAlreadyExists exception instead of generic HTTP exception

IMO '409 Conflict' isn't descriptive enough to handle at the application
level (contrary to things like '404 Not Found')

20 months agoRenamed remote.Remote to remote.API to prevent stutter.
Sybren A. Stüvel [Fri, 3 Nov 2017 12:43:09 +0000 (13:43 +0100)]
Renamed remote.Remote to remote.API to prevent stutter.

20 months agoFixed issue with auth
Sybren A. Stüvel [Fri, 3 Nov 2017 12:41:00 +0000 (13:41 +0100)]
Fixed issue with auth

Apparently setting session.auth doesn't work as I expected it to work.

20 months agoInitial checkin of some base functionality
Sybren A. Stüvel [Fri, 3 Nov 2017 11:16:13 +0000 (12:16 +0100)]
Initial checkin of some base functionality