Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

settings: Expose GIT_OPT_SET_OWNER_VALIDATION option #971

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexjfisher
Copy link

By default, libgit2 will throw an error if you try to open a repository not owned by the current user. An option to disable this validation is available, but wasn't being exposed in rugged.

This commit exposes fetching and setting this option via a new owner_validation setting.

(My use case is using rugged in a ruby language AWS lambda function connected to EFS. In this scenario, the EFS access point is configured with a POSIX user ID and group ID used for all file system operations using this access point, but the lambda's execution environment's uid is not known upfront and won't match).

By default, `libgit2` will throw an error if you try to open a
repository not owned by the current user. An option to disable this
validation is available, but wasn't being exposed in `rugged`.

This commit exposes fetching and setting this option via a new
`owner_validation` setting.

(My use case is using `rugged` in a ruby language AWS lambda function
connected to EFS. In this scenario, the EFS access point is configured
with a POSIX user ID and group ID `used for all file system operations
using this access point`, but the lambda's execution environment's uid
is not known upfront and won't match).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant