Why does a Terraform module with `source = "git::https://access-token:` work but a manual `git clone` execution with the same `access-token` fails?

2024-10-21--06-34-01

module "magento" {
  <…>
  source = "git::https://access-token:<…>@<…>/devops/k8s-terraform-tf-modules//magento"
  <…> 
}

Terraform does not directly run a git clone.
It uses an internal go-getter library that is designed to handle Git operations and other source URLs in a more robust and flexible way.
This mechanism can bypass certain issues that might affect a direct git clone command.