mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-22 16:02:24 +00:00
fix: audit logs
This commit is contained in:
+4
-4
@@ -1215,10 +1215,10 @@ pub async fn push<'c>(
|
||||
{
|
||||
let s: String;
|
||||
let audit_o = match job_kind {
|
||||
JobKind::Preview => {
|
||||
s = format!("preview {:?}", script_path);
|
||||
Some(("jobs.run.preview", Some(s)))
|
||||
}
|
||||
JobKind::Preview => Some((
|
||||
"jobs.run.preview",
|
||||
Some(format!("{}", script_path.unwrap_or_else(String::new))),
|
||||
)),
|
||||
JobKind::Script => {
|
||||
s = ScriptHash(script_hash.unwrap()).to_string();
|
||||
hm.insert("hash", s.as_str());
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
import { workspaceStore } from '$lib/stores'
|
||||
import Required from './Required.svelte'
|
||||
import Tooltip from './Tooltip.svelte'
|
||||
|
||||
const dispatch = createEventDispatcher()
|
||||
|
||||
@@ -135,6 +136,18 @@
|
||||
<label class="block pb-6">
|
||||
<input type="checkbox" bind:checked={variable.is_secret} />
|
||||
<span class="ml-2">Secret</span>
|
||||
{#if variable.is_secret}
|
||||
<div
|
||||
class="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-1 mt-1 text-sm"
|
||||
role="alert"
|
||||
>
|
||||
When a secret, you will not be able to read this variable value from the variable editor
|
||||
UI but only within scripts. <Tooltip>
|
||||
Within scripts, every read of the value create the audit log:
|
||||
'variables.decrypt_secret'</Tooltip
|
||||
>
|
||||
</div>
|
||||
{/if}
|
||||
</label>
|
||||
<div class="font-semibold text-gray-700 col-span-10 }">
|
||||
{#if variable.is_secret}
|
||||
|
||||
@@ -81,7 +81,6 @@
|
||||
loadUsers()
|
||||
loadLogs(username, pageIndex)
|
||||
}
|
||||
username = $userStore?.username
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -126,6 +125,7 @@
|
||||
gotoPage((pageIndex ?? 1) - 1)
|
||||
}}
|
||||
currentPage={pageIndex}
|
||||
paginated={true}
|
||||
>
|
||||
<tr slot="header-row">
|
||||
<th>id</th>
|
||||
|
||||
Reference in New Issue
Block a user