File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ DATABASE_URL = "postgres://postgres@localhost/zed"
22# DATABASE_URL = "sqlite:////root/0/zed/db.sqlite3?mode=rwc"
33DATABASE_MAX_CONNECTIONS = 5
44HTTP_PORT = 8080
5- API_TOKEN = " secret"
65ZED_ENVIRONMENT = " development"
76LIVEKIT_SERVER = " http://localhost:7880"
87LIVEKIT_KEY = " devkey"
Original file line number Diff line number Diff line change 8787 key : url
8888 - name : DATABASE_MAX_CONNECTIONS
8989 value : " ${DATABASE_MAX_CONNECTIONS}"
90- - name : API_TOKEN
91- valueFrom :
92- secretKeyRef :
93- name : api
94- key : token
9590 - name : ZED_CLIENT_CHECKSUM_SEED
9691 valueFrom :
9792 secretKeyRef :
Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ use std::sync::Arc;
1111
1212/// Validates the authorization header and adds an Extension<Principal> to the request.
1313/// Authorization: <user-id> <token>
14- /// <token> can be an access_token attached to that user, or an access token of an admin
15- /// or (in development) the string ADMIN:<config.api_token>.
14+ /// <token> is the access_token attached to that user.
1615/// Authorization: "dev-server-token" <token>
1716pub async fn validate_header < B > ( mut req : Request < B > , next : Next < B > ) -> impl IntoResponse {
1817 let mut auth_header = req
Original file line number Diff line number Diff line change @@ -124,7 +124,6 @@ pub struct Config {
124124 pub database_url : String ,
125125 pub seed_path : Option < PathBuf > ,
126126 pub database_max_connections : u32 ,
127- pub api_token : String ,
128127 pub livekit_server : Option < String > ,
129128 pub livekit_key : Option < String > ,
130129 pub livekit_secret : Option < String > ,
@@ -171,7 +170,6 @@ impl Config {
171170 http_port : 0 ,
172171 database_url : "" . into ( ) ,
173172 database_max_connections : 0 ,
174- api_token : "" . into ( ) ,
175173 livekit_server : None ,
176174 livekit_key : None ,
177175 livekit_secret : None ,
Original file line number Diff line number Diff line change @@ -586,7 +586,6 @@ impl TestServer {
586586 http_port : 0 ,
587587 database_url : "" . into ( ) ,
588588 database_max_connections : 0 ,
589- api_token : "" . into ( ) ,
590589 livekit_server : None ,
591590 livekit_key : None ,
592591 livekit_secret : None ,
You can’t perform that action at this time.
0 commit comments