Skip to content

Commit

Permalink
Lowercase instance and org name when computing instance DNS (#255)
Browse files Browse the repository at this point in the history
Nebula switched to doing this, and so the clients must follow.
  • Loading branch information
elprans authored Jun 12, 2023
1 parent 81ca77b commit 8576645
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions edgedb-tokio/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1449,6 +1449,8 @@ async fn read_instance(cfg: &mut ConfigInner, name: &InstanceName)
let dns_zone = claims
.issuer
.ok_or(ClientError::with_message("Invalid secret key"))?;
let org_slug = org_slug.to_lowercase();
let name = name.to_lowercase();
let msg = format!("{}/{}", org_slug, name);
let checksum = crc16::State::<crc16::XMODEM>::calculate(
msg.as_bytes());
Expand Down

0 comments on commit 8576645

Please sign in to comment.