Personal-files request for FreeCAD

name: freecad
description: An open source parametric 3D CAD modeler
snapcraft: https://github.com/FreeCAD/FreeCAD-snap/blob/master/snap/snapcraft.yaml
upstream: https://github.com/FreeCAD/FreeCAD
upstream-relation: maintainer
plugs:
  gitconfig:
    interface: personal-files
    attributes:
      read:
        - $HOME/.gitconfig
        - $HOME/.config/git/config
    request-type: auto-connection
    reasoning: |
      FreeCAD supports external add-on workbenches (such as the
      HistoryWorkbench and ohers) that invoke the Git CLI to provide revision 
      control for 3D CAD models. Read access to the user's global Git
      configuration is required so that Git operations executed inside the       
      confined snap inherit the user's configured author name, email, and 
      preferences.

After landing this change on FreeCADs snapcraft.yaml file the snap has been stuck in the queue requiring manual review on the dashboard - please let me know whether there is anything else to do on our side. Thanks.

This request has been added to the queue for review by the @reviewers team.

Hi @furgo

Sorry for the delay. personal-files auto-connection is typically reserved for files that are clearly owned by the snapped application. However, considering that:

  • FreeCAD is a mature, well-known application
  • the access is limited to read access
  • whilst these files may contain credentials on certain configurations, I believe it would be against best practices.

Considering all the above, +1 from me after successful publisher vetting

+1 from me as well to grant read access to the requested files using personal-files interface.

+2 for, 0 against granting freecad auto-connection to the requested personal-files interface. I’ve sent a DM to the publisher @furgo to proceed with the publisher vetting.

To conform with the usual naming convention I would ask you to split the requested access in two personal files plugs as follows:

  dot-gitconfig:
      read:
        - $HOME/.gitconfig
  dot-config-git-config:
      read:
        - $HOME/.config/git/config

DM replied to, change applied as suggested, PR submitted, pending on the publisher vetting approval: Add access to Git config by furgo16 · Pull Request #325 · FreeCAD/FreeCAD-snap · GitHub