RE: Bug? -SVNSYNC - Path-based authentication is ignored

"Tomas Molnar via users" <[email protected]>
Newsgroups gmane.comp.version-control.subversion.user
Message-ID <PAXPR01MB8304074F3B094E000D994CF0F2282@PAXPR01MB8304.eurprd01.prod.exchangelabs.com>
Hi Daniel,

thank you very much. After adding “SVNPathAuthz on“ the sync behaves as expected. I’ll try to figure out if there is some kind of inheritance involved which might have disabled it.

BR





[PTSports_Logo_ICE2023_blue.jpg]        Tomas Molnar | System Administrator
Tel: +43158103508303 | Mobile: +436648128247 | www.playtech.com<https://www.playtech.com>


[PlaytechSports_Sig_2023_final.png]


Sensitivity: Internal


Sensitivity: Internal

From: Daniel Sahlberg <[email protected]>
Sent: Freitag, 15. März 2024 16:27
To: Tomas Molnar <[email protected]>
Cc: [email protected]
Subject: Re: Bug? -SVNSYNC - Path-based authentication is ignored

Den fre 15 mars 2024 kl 12:58 skrev Tomas Molnar via users <[email protected]<mailto:[email protected]>>:
Hi,

I’m trying to run a SVNSYNC to mirror repository via http(s). Although, I’ve allowed access to only “Folder” within the repository via AuthzSVNAccessFile the whole repository is being synchronized. The path-based authentication works perfectly for browsing the repo, but it is ignored during the sync.

When I check the Apache logs it becomes clear to me why this might be the case – Svnsync request are handled via “/svn/replication-repo/!svn/rev/<revision>”. This would basically allow to get a copy of the SVN repo and even access to locations not intended to be accessed.

version 1.13.0 (r1867053)

mod_dav.conf

<Location /svn/replication-repo>
   DAV svn
   SVNPath /…/repo
   SVNPathAuthz off

I think this is your problem. The SVN book [1] says:

The SVNPathAuthz directive is “on” by default. When set to “off,” all path-based authorization checking is disabled; mod_dav_svn stops invoking authorization checks on every path it discovers.

Can you check with this set to on (or disabled altogether)?

Kind regards,
Daniel

[1] https://svnbook.red-bean.com/nightly/en/svn.serverconfig.httpd.html#svn.serverconfig.httpd.authz.pathauthzoff

   AuthType Basic
   AuthName "Authorization SVN"
   AuthBasicProvider file
   AuthzSVNAccessFile /…/authz
   AuthUserFile /…/users
   require valid-user
</Location>


AuthzSVNAccessFile:

[groups]
roFilteredGroup = ReplicationFiltered

[replication-repo:/]
@roFilteredGroup =

[replication-repo:/Folder]
@roFilteredGroup = r



Sensitivity: Internal


[PTSports_Logo_ICE2023_blue.jpg]
Tomas Molnar | System Administrator
Tel: +43158103508303 | Mobile: +436648128247 | www.playtech.com<https://www.playtech.com>


[PlaytechSports_Sig_2023_final.png]


Sensitivity: Internal
image001.jpg (image/jpeg, 258.9 KB) - not displayed
image002.png (image/png, 121.4 KB) - not displayed
ptsports_logo_ice2023_blue_b9db8bc4-b91b-4f81-b520-1fcfdcd32aae.jpg (image/jpeg, 258.9 KB) - not displayed
playtechsports_sig_2023_final_fc362b93-5906-4651-a30b-b8726346878c.png (image/png, 81.5 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.