-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Open
Labels
bugSomething isn't workingSomething isn't workingcomponent:rbacIssue related to User management, Policy and API accessIssue related to User management, Policy and API accesscomponent:serverIssue related to the Server componentIssue related to the Server componentsecuritySecurity related issuesSecurity related issues
Description
Checklist:
- I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
- I've included steps to reproduce the bug.
- I've pasted the output of
argocd version.
Describe the bug
When performing a syncing a multi-source app with Revisions defined (via Rest API), the App Target Revisions get overwritten.
To Reproduce
see
argo-cd/server/application/application.go
Line 2041 in 5cd1ef9
| sources[pos-1].TargetRevision = syncReq.Revisions[i] |
This writes to the slice stolen from app spec, and makes the following check to prevent such syncs when autosync is enabled a no-op.
Expected behavior
A sync should not change the Application spec.
Syncing arbitrary revisions should be prevented when autosync is enabled
Screenshots
Version
any version up to nowLogs
Paste any relevant application logs here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcomponent:rbacIssue related to User management, Policy and API accessIssue related to User management, Policy and API accesscomponent:serverIssue related to the Server componentIssue related to the Server componentsecuritySecurity related issuesSecurity related issues