[Bug 599066] New: Create a specific check for the gnomeweb user from l10n.gnome.org

View: New views
2 Messages — Rating Filter:   Alert me  

[Bug 599066] New: Create a specific check for the gnomeweb user from l10n.gnome.org

by Bugzilla from bugzilla@gnome.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://bugzilla.gnome.org/show_bug.cgi?id=599066
  sysadmin | Git | unspecified

           Summary: Create a specific check for the gnomeweb user from
                    l10n.gnome.org
    Classification: Infrastructure
           Product: sysadmin
           Version: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: Git
        AssignedTo: sysadmin-maint@...
        ReportedBy: claude@...
         QAContact: sysadmin-maint@...
      GNOME target: ---
     GNOME version: ---


Our l10n infrastructure on l10n.gnome.org would like to be able to auto-commit
files from the Web application Damned-Lies.
For security concerns, it has been decided by the sysadmin team that this would
require a specific git hook to check that only acceptable files are committed
by this account.

Basically, the hook should be like the snippet below. I've no idea if the
committer name or email is forgeable though.

#!/bin/bash

check_gnomeweb() {
    path=$1

    case "$path" in
        *.po|LINGUAS)
            ;;
        *)
            echo "Unauthorized file for gnomeweb user: $path"
            exit 1
    esac
}

committer_name="$(git log $commit -1 --pretty=format:%cn)"
if [ $committer_name = "Gnomeweb" ] ; then
    git diff-tree --name-only -r $oldrev $newrev | (
        while read path ; do
            check_gnomeweb $path
        done
    )
fi

--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the QA contact of the bug.
You are watching the assignee of the bug.
_______________________________________________
gnome-infrastructure mailing list
gnome-infrastructure@...
http://mail.gnome.org/mailman/listinfo/gnome-infrastructure

[Bug 599066] Create a specific check for the gnomeweb user from l10n.gnome.org

by Bugzilla from bugzilla@gnome.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://bugzilla.gnome.org/show_bug.cgi?id=599066
  sysadmin | Git | unspecified

--- Comment #1 from Claude Paroz <claude@...> 2009-10-20 18:22:17 CEST ---
This of course is only valid for UI translations, not documentation where image
files and Makefile.am have to be touched. But this could be done in a second
step.

--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the QA contact of the bug.
You are watching the assignee of the bug.
_______________________________________________
gnome-infrastructure mailing list
gnome-infrastructure@...
http://mail.gnome.org/mailman/listinfo/gnome-infrastructure