Skip to content

Commit

Permalink
finish secret manager feature
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed May 1, 2024
1 parent 3e3f7fc commit 2aa4da8
Show file tree
Hide file tree
Showing 78 changed files with 1,183 additions and 230 deletions.
51 changes: 35 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions crates/cli/src/cmd/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,29 @@ pub fn call(module: &str, command: &str) {
.with_function("as_service", [PTR], [PTR], user_data.clone(), as_service)
.with_function("with_service", [PTR], [], user_data.clone(), with_service)
.with_function("wait_on", [PTR], [], user_data.clone(), wait_on)
.with_function(
"add_secretmanager",
[PTR],
[PTR],
user_data.clone(),
add_secretmanager,
)
.with_function("get_secret", [PTR], [PTR], user_data.clone(), get_secret)
.with_function("set_secret", [PTR], [PTR], user_data.clone(), set_secret)
.with_function(
"with_secret_variable",
[PTR],
[],
user_data.clone(),
with_secret_variable,
)
.with_function(
"get_secret_plaintext",
[PTR],
[PTR],
user_data.clone(),
get_secret_plaintext,
)
.build()
.unwrap();

Expand Down
1 change: 1 addition & 0 deletions crates/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ anyhow = "1.0.81"
dirs = "5.0.1"
fluentci-core = {path = "../core", version = "0.2.1"}
fluentci-ext = {path = "../ext", version = "0.2.0"}
fluentci-secrets = {path = "../secrets", version = "0.1.0"}
fluentci-types = {path = "../types", version = "0.1.6"}
regex = "1.10.4"
sha256 = "1.5.0"
Expand Down
4 changes: 2 additions & 2 deletions crates/common/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ pub fn cache(graph: Arc<Mutex<Graph>>, key: &str) -> Result<Cache, Error> {
key.into(),
vec![],
Arc::new(Box::new(CacheExt::default())),
));
))?;

graph.execute(GraphCommand::AddVolume(
id.clone(),
"cache".into(),
key.into(),
));
))?;

let cache = Cache {
id,
Expand Down
Loading

0 comments on commit 2aa4da8

Please sign in to comment.