pageserver: fix loading control plane JWT token (#5470)

## Problem

In #5383 this configuration was added, but it missed the parts of the
Builder class that let it actually be used.

## Summary of changes

Add `control_plane_api_token` hooks to PageserverConfigBuilder
This commit is contained in:
John Spray
2023-10-05 01:31:17 +01:00
committed by GitHub
parent 6489a4ea40
commit c5ea91f831
2 changed files with 18 additions and 0 deletions

View File

@@ -228,6 +228,12 @@ impl SecretString {
}
}
impl From<String> for SecretString {
fn from(s: String) -> Self {
Self(s)
}
}
impl std::fmt::Debug for SecretString {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "[SECRET]")