Skip to content

Commit

Permalink
feat(spicedb): set default preshared key
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Jul 21, 2024
1 parent e1bb100 commit a1629a1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spicedb/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,19 @@ pub fn setup() -> Result<String, Error> {
.stdout()?;

let spicedb_port = dag().get_env("SPICEDB_PORT")?;
let spicedb_preshared_key = dag().get_env("SPICEDB_PRESHARED_KEY")?;

if spicedb_port.is_empty() {
dag().set_envs(vec![("SPICEDB_PORT".into(), "50051".into())])?;
}

if spicedb_preshared_key.is_empty() {
dag().set_envs(vec![(
"SPICEDB_PRESHARED_KEY".into(),
"somerandomkeyhere".into(),
)])?;
}

let stdout = dag()
.flox()?
.with_workdir(".fluentci/spicedb")?
Expand Down

0 comments on commit a1629a1

Please sign in to comment.