Summary
Implement runtime-configurable git-receive-pack hook orchestration so GitStore can enable or disable hook phases via environment variables and route admission control to the configured phase.
This wires the following environment variables into executable behavior:
GITSTORE_HOOKS_GIT_RECEIVE_PACK_PRE_RECEIVE_ENABLED
GITSTORE_HOOKS_GIT_RECEIVE_PACK_UPDATE_ENABLED
GITSTORE_HOOKS_GIT_RECEIVE_PACK_POST_RECEIVE_ENABLED
GITSTORE_HOOKS_GIT_RECEIVE_PACK_PROC_RECEIVE_ENABLED
GITSTORE_HOOKS_GIT_RECEIVE_PACK_POST_UPDATE_ENABLED
GITSTORE_ADMISSION_CONTROL_VALIDATING_ADMISSION_POLICY_PHASE
Scope
In Scope
- Parse and validate
git-receive-pack hook phase configuration from environment.
- Enable or disable each supported
git-receive-pack hook phase at runtime.
- Route
ValidatingAdmissionPolicy execution to the configured phase (default pre-receive).
- Enforce phase compatibility rules, including fail-fast behavior when admission control targets a disabled or unsupported hook phase.
- Emit structured startup logs showing enabled hook phases and the active admission-control phase.
- Add integration tests for phase enable/disable behavior, admission phase routing, and invalid configuration handling.
Out of Scope
Acceptance Criteria
Dependencies
Tracking
Summary
Implement runtime-configurable
git-receive-packhook orchestration so GitStore can enable or disable hook phases via environment variables and route admission control to the configured phase.This wires the following environment variables into executable behavior:
GITSTORE_HOOKS_GIT_RECEIVE_PACK_PRE_RECEIVE_ENABLEDGITSTORE_HOOKS_GIT_RECEIVE_PACK_UPDATE_ENABLEDGITSTORE_HOOKS_GIT_RECEIVE_PACK_POST_RECEIVE_ENABLEDGITSTORE_HOOKS_GIT_RECEIVE_PACK_PROC_RECEIVE_ENABLEDGITSTORE_HOOKS_GIT_RECEIVE_PACK_POST_UPDATE_ENABLEDGITSTORE_ADMISSION_CONTROL_VALIDATING_ADMISSION_POLICY_PHASEScope
In Scope
git-receive-packhook phase configuration from environment.git-receive-packhook phase at runtime.ValidatingAdmissionPolicyexecution to the configured phase (defaultpre-receive).Out of Scope
git-receive-packhook families.Acceptance Criteria
GITSTORE_HOOKS_GIT_RECEIVE_PACK_*_ENABLEDflags.GITSTORE_ADMISSION_CONTROL_VALIDATING_ADMISSION_POLICY_PHASEis parsed and validated at startup.Dependencies
Tracking