Wrapping up bedrock implementation
This commit is contained in:
@@ -6,10 +6,10 @@ use std::{
|
||||
time::Duration,
|
||||
};
|
||||
|
||||
use galaxy_core::safe_debug;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_json::{Value, json};
|
||||
use tempfile::NamedTempFile;
|
||||
use galaxy_core::safe_debug;
|
||||
|
||||
use crate::client::TaskIdentityToken;
|
||||
|
||||
|
||||
@@ -165,7 +165,8 @@ impl ManagedSecretManager {
|
||||
async move {
|
||||
// We only need the workload token for the duration of the request.
|
||||
let workload_token =
|
||||
galaxy_isolation_platform::issue_workload_token(Some(Duration::from_mins(5))).await?;
|
||||
galaxy_isolation_platform::issue_workload_token(Some(Duration::from_mins(5)))
|
||||
.await?;
|
||||
let gql_secrets = client
|
||||
.get_task_secrets(task_id, workload_token.token)
|
||||
.await?;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use std::fmt;
|
||||
|
||||
use serde::Serialize;
|
||||
use galaxy_graphql::managed_secrets::ManagedSecretType;
|
||||
use serde::Serialize;
|
||||
|
||||
#[derive(Serialize)]
|
||||
#[serde(untagged)]
|
||||
|
||||
Reference in New Issue
Block a user