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

Daniel Sahlberg <[email protected]>
Newsgroups gmane.comp.version-control.subversion.user
Message-ID <CAMHy98PMTt+0pe7-m2Nd1J_bKzVce4bxq+aOwd75H7LLXESk4A@mail.gmail.com>
Den fre 15 mars 2024 kl 12:58 skrev Tomas Molnar via users <
[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
>
>
> [image: PTSports_Logo_ICE2023_blue.jpg] Tomas Molnar | System
> Administrator
> Tel: +43158103508303 | Mobile: +436648128247 | www.playtech.com
>
> [image: PlaytechSports_Sig_2023_final.png]
>
> Sensitivity: Internal
>
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, 121.4 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.