You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tested with the :latest image tag (i.e. quay.io/argoproj/workflow-controller:latest) and can confirm the issue still exists on :latest. If not, I have explained why, in detail, in my description below.
I have searched existing issues and could not find a match for this bug
For the record I lied on the above prerequisites because they didn't apply. I also did not test on latest because this setting is only true on our more locked down higher environments where I cannot arbitrarily change the service version.
When attempting to submit a cron workflow adhoc, I am unable to do so when workflowRestriction is set.
I don't know if this is a bug report or a feature request, but to me it seems like a bug. IMO the "purpose" of requiring template referencing is to ensure all workflow runs are gated by version control (given that you only allow workflow templates to be created via git/CICD).
running a cron adhoc should serve the same purpose of requiring a workflow to be defined via a resource in the cluster prior to the run.
Version(s)
v3.5.8
Paste a minimal workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflow that uses private images.
Any cron workflow should do.
Logs from the workflow controller
N/A
Logs from in your workflow's wait container
N/A
The text was updated successfully, but these errors were encountered:
Hi @tczhao, I do understand the intent that "This helps to prevent users from submitting arbitrary workflows."
My argument, as stated in the original ticket is that "running a cron adhoc should serve the same purpose of requiring a workflow to be defined via a resource in the cluster prior to the run.".
A cron workflow has to exist before it can be submitted, exactly like a workflow template.
You cannot submit an arbitrary workflow if you're doing so by submitting a cronjob. And, these workflows are themselves submitted by the controller without a template reference, so I don't think your argument has much merit.
I think this was an oversight/unintended consequence of the design, and should require another look.
Pre-requisites
:latest
image tag (i.e.quay.io/argoproj/workflow-controller:latest
) and can confirm the issue still exists on:latest
. If not, I have explained why, in detail, in my description below.What happened? What did you expect to happen?
For the record I lied on the above prerequisites because they didn't apply. I also did not test on latest because this setting is only true on our more locked down higher environments where I cannot arbitrarily change the service version.
When attempting to submit a cron workflow adhoc, I am unable to do so when workflowRestriction is set.
I don't know if this is a bug report or a feature request, but to me it seems like a bug. IMO the "purpose" of requiring template referencing is to ensure all workflow runs are gated by version control (given that you only allow workflow templates to be created via git/CICD).
running a cron adhoc should serve the same purpose of requiring a workflow to be defined via a resource in the cluster prior to the run.
Version(s)
v3.5.8
Paste a minimal workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflow that uses private images.
Any cron workflow should do.
Logs from the workflow controller
Logs from in your workflow's wait container
The text was updated successfully, but these errors were encountered: