Rebrand to Galaxy, major improvements to Bedrock support, still needs some TLC though
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "warp_managed_secrets"
|
||||
name = "galaxy_managed_secrets"
|
||||
version = "0.1.0"
|
||||
authors.workspace = true
|
||||
publish.workspace = true
|
||||
@@ -20,11 +20,11 @@ tink-core = "0.3"
|
||||
tink-proto = "0.3"
|
||||
tink-hybrid = "0.3"
|
||||
zeroize = "1.8"
|
||||
warpui.workspace = true
|
||||
warp_core.workspace = true
|
||||
warp_graphql.workspace = true
|
||||
galaxyui.workspace = true
|
||||
galaxy_core.workspace = true
|
||||
galaxy_graphql.workspace = true
|
||||
vec1.workspace = true
|
||||
warp_isolation_platform.workspace = true
|
||||
galaxy_isolation_platform.workspace = true
|
||||
|
||||
# Pure-Rust HPKE implementation (RFC 9180).
|
||||
hpke = { version = "0.13", default-features = false, features = ["alloc", "x25519"] }
|
||||
|
||||
@@ -7,9 +7,9 @@ use anyhow::Result;
|
||||
use chrono::{DateTime, Utc};
|
||||
use vec1::Vec1;
|
||||
|
||||
use warp_graphql::managed_secrets::{ManagedSecret, ManagedSecretConfig, ManagedSecretType};
|
||||
use galaxy_graphql::managed_secrets::{ManagedSecret, ManagedSecretConfig, ManagedSecretType};
|
||||
|
||||
pub use warp_graphql::queries::task_secrets::ManagedSecretValue;
|
||||
pub use galaxy_graphql::queries::task_secrets::ManagedSecretValue;
|
||||
|
||||
/// An OIDC identity token issued for a task workload.
|
||||
#[derive(Debug, Clone)]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use std::{io, sync::Once};
|
||||
|
||||
use base64::Engine;
|
||||
use warp_graphql::managed_secrets::ManagedSecretType;
|
||||
use galaxy_graphql::managed_secrets::ManagedSecretType;
|
||||
|
||||
use crate::secret_value::ManagedSecretValue;
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ use std::{
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_json::{Value, json};
|
||||
use tempfile::NamedTempFile;
|
||||
use warp_core::safe_debug;
|
||||
use galaxy_core::safe_debug;
|
||||
|
||||
use crate::client::TaskIdentityToken;
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@ use std::{collections::HashMap, future::Future, sync::Arc, time::Duration};
|
||||
|
||||
use vec1::vec1;
|
||||
|
||||
use warp_core::features::FeatureFlag;
|
||||
use warp_graphql::managed_secrets::ManagedSecret;
|
||||
use warpui::{Entity, SingletonEntity};
|
||||
use galaxy_core::features::FeatureFlag;
|
||||
use galaxy_graphql::managed_secrets::ManagedSecret;
|
||||
use galaxyui::{Entity, SingletonEntity};
|
||||
|
||||
use crate::{
|
||||
ManagedSecretValue,
|
||||
@@ -15,7 +15,7 @@ use crate::{
|
||||
envelope::UploadKey,
|
||||
gcp::{self, GcpWorkloadIdentityFederationError, GcpWorkloadIdentityFederationToken},
|
||||
};
|
||||
use warp_graphql::queries::task_secrets::ManagedSecretValue as GqlManagedSecretValue;
|
||||
use galaxy_graphql::queries::task_secrets::ManagedSecretValue as GqlManagedSecretValue;
|
||||
|
||||
/// Singleton model for working with Warp-managed secrets.
|
||||
pub struct ManagedSecretManager {
|
||||
@@ -165,7 +165,7 @@ impl ManagedSecretManager {
|
||||
async move {
|
||||
// We only need the workload token for the duration of the request.
|
||||
let workload_token =
|
||||
warp_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 warp_graphql::managed_secrets::ManagedSecretType;
|
||||
use galaxy_graphql::managed_secrets::ManagedSecretType;
|
||||
|
||||
#[derive(Serialize)]
|
||||
#[serde(untagged)]
|
||||
|
||||
Reference in New Issue
Block a user