Re: Clarifications using Subversion

2016-04-12 Thread Andreas Stieger
Hi,
 
Vijay Peddamallu wrote:
> can restrict “svn delete” command to limited set of users?

Pre-commit hook that examines the pending transactions and rejects accordingly.
http://svnbook.red-bean.com/en/1.7/svn.ref.reposhooks.pre-commit.html

> If I lock source code on my name, can we apply a restriction that only I can 
> unlock it. Otherwise, admin?
 
Pre-unlock hook that examines the unlock request and restricts as required.
http://svnbook.red-bean.com/en/1.7/svn.ref.reposhooks.pre-unlock.html 

Note that svn's locking feature is not a write protection, but intended for 
serializing edits to files where individual changes cannot be merged - such as 
binary assets, images.

For that and the above, I have found that project policies work much better 
than technical restrictions you are asking for. Certainly in reasonably 
motivated professional environments.

Andreas


Svn will not remember passphrase for client certificate.

2016-04-12 Thread Chris Capon
Subversion v1.9.3, Apache2 v2.4.18

Our subversion server uses SSL with client certificates.  When performing
any action against the repository using the svn client, a prompt appears
asking for the password to the client certificate.  (Note: this is not the
user id / password combination).

Expected action:  After the first time prompting for the password, svn
should have preserved it and not asked for it again.

Below is a sample session.  Attached is the user's config file.

Any help you can offer will be appreciated.
Thanks.

---

cc@ccvm:~/Robust/Client$ svn --version
svn, version 1.9.3 (r1718519)
   compiled Mar 14 2016, 11:39:40 on x86_64-pc-linux-gnu

Copyright (C) 2015 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using
serf.
  - using serf 1.3.8 (compiled with 1.3.8)
  - handles 'http' scheme
  - handles 'https' scheme

The following authentication credential caches are available:

* Plaintext cache in /home/cc/.subversion
* Gnome Keyring
* GPG-Agent
* KWallet (KDE)

cc@ccvm:~/Robust/Client$ svn update
Updating '.':
Passphrase for '/home/cc/Robust/ccapon.p12': ***

At revision 3127.
cc@ccvm:~/Robust/Client$ svn update
Updating '.':
Passphrase for '/home/cc/Robust/ccapon.p12': ***

At revision 3127.
cc@ccvm:~/Robust/Client$


config
Description: Binary data


Re: Clarifications using Subversion

2016-04-12 Thread Eric Johnson
While the other response gives you the clues to (mostly) enforce what 
you want, I strongly encourage you to consider how to avoid using 
tooling to solve what is probably really a management problem.


The more you customize your hooks, the more difficult it might be to 
move your Subversion installation to a new environment, a cloud 
provider, or a commercial offering, just for example.


Hooks are best applied to business rules that are not about people.

You can use them the way you're asking, but long term, you might not 
want to.


Eric.

On 4/11/16 6:32 AM, Vijay Peddamallu wrote:


Dear All,

We are working on enhancing our repository and put some controls 
hence. In this regard, seek clarifications on the following. Please 
note that we are on Subversion v 1.7 as I write.


1.Is there any way that we can restrict “svn delete” command to 
limited set of users? While we understand that there is a way to 
recover the deleted version, would still like to understand if this is 
an option in first place.


2.If I lock source code on my name, can we apply a restriction that 
only I can unlock it. Otherwise, admin?


*Thanks,*

*Vijay Pedamallu*

Tech Lead, Global Oracle HRIS

Corporate Human Resources
cid:image001.png@01CFDC05.02039490
Arthur J. Gallagher & Co.

M: +91-98858-04770

www.ajg.com    | vijay_peddama...@ajg.com 



*Confidentiality Note:* This e-mail and any files transmitted with it 
are intended only for the person or entity to which it is addressed 
and may contain confidential material and/or material protected by 
law.  Any retransmission or use of this information may be a violation 
of that law.  If you received this in error, please contact the sender 
and delete the material from any computer.


cid:image002.jpg@01CFDC05.02039490