-
Notifications
You must be signed in to change notification settings - Fork 3
feat(params): add secret parameter support #210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -840,7 +840,11 @@ pub async fn create_schedule( | |
| let run_parameters = parameters.map(|params| { | ||
| params | ||
| .into_iter() | ||
| .map(|(key, value)| RunParameter { name: key, value }) | ||
| .map(|(key, value)| RunParameter { | ||
| name: key, | ||
| value, | ||
| hidden: false, | ||
| }) | ||
|
Comment on lines
+843
to
+847
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
At Line 843 and Line 881 mappings, this prevents creating/updating secret schedule parameters through this path and can downgrade secrecy semantics when parameters are re-sent. The request shape should carry Also applies to: 881-885 🤖 Prompt for AI Agents |
||
| .collect() | ||
| }); | ||
|
|
||
|
|
@@ -874,7 +878,11 @@ pub async fn update_schedule( | |
| let run_parameters = parameters.map(|params| { | ||
| params | ||
| .into_iter() | ||
| .map(|(key, value)| RunParameter { name: key, value }) | ||
| .map(|(key, value)| RunParameter { | ||
| name: key, | ||
| value, | ||
| hidden: false, | ||
| }) | ||
| .collect() | ||
| }); | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know it's not new here, but I am wondering why we need
renamehere if it's the same name in TOML and the rust?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default is for "false", adn the
renameis definitely optional, just makes the name explicit what we're serializing to/from.