Open lgiedrius opened 1 year ago
Checklist:
argocd version
Describe the bug
History and rollback feature ignores project-scoped repositories. Requires additionally adding repositories to whitelist in the project itself
To Reproduce
Expected behavior
Deployment parameters shown and possible to rollback
Screenshots
Successful syncing:
Trying to see deployment revisions with parameters error and notification that "repository not allowed in project"
After adding to AppProject spec.sourceRepos:
Attempt to rollback:
Version
argocd: v2.6.1+3f143c9 BuildDate: 2023-02-08T18:51:05Z GitCommit: 3f143c9307f99a61bf7049a2b1c7194699a7c21b GitTreeState: clean GoVersion: go1.18.10 Compiler: gc Platform: linux/amd64
Logs
time="2023-02-15T12:10:00Z" level=info msg="received unary call /repository.RepositoryService/GetAppDetails" grpc.method=GetAppDetails grpc.request.content="%!v(PANIC=String method: reflect.Value.Bytes of non-byte slice)" grpc.service=repository.RepositoryService grpc.start_time="2023-02-15T12:10:00Z" span.kind=server system=grpc time="2023-02-15T12:10:00Z" level=debug msg="<repository> has credentials" time="2023-02-15T12:10:00Z" level=warning msg="finished unary call with code PermissionDenied" error="rpc error: code = PermissionDenied desc = repository '<repository>' not permitted in project '<project>'" grpc.code=PermissionDenied grpc.method=GetAppDetails grpc.service=repository.RepositoryService grpc.start_time="2023-02-15T12:10:00Z" grpc.time_ms=43.463 span.kind=server system=grpc
same problem here, but setting sourceRepos not helping Argo CD v2.9.0+9cf0c69 Build Date 2023-11-06T04:43:50Z
fixed by adding the repo to the list of repositories of the project
Checklist:
argocd version
.Describe the bug
History and rollback feature ignores project-scoped repositories. Requires additionally adding repositories to whitelist in the project itself
To Reproduce
Expected behavior
Deployment parameters shown and possible to rollback
Screenshots
Successful syncing:
Trying to see deployment revisions with parameters error and notification that "repository not allowed in project"
After adding to AppProject spec.sourceRepos:
Attempt to rollback:
Version
Logs