From 8335cedb1af0123ea9a5a3c6bd8b269fc5ead9e1 Mon Sep 17 00:00:00 2001 From: Jan Salapatek Date: Tue, 14 Jun 2022 13:14:07 +0200 Subject: [PATCH] fixed secret base enc. rem. superfl. imports. --- test/resources/sidecar.yaml | 4 ++-- test/server/server.py | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/test/resources/sidecar.yaml b/test/resources/sidecar.yaml index f0b2af89..602fdcfd 100644 --- a/test/resources/sidecar.yaml +++ b/test/resources/sidecar.yaml @@ -110,7 +110,7 @@ metadata: name: token-auth-sample-secret type: Opaque data: - REQ_TOKEN_KEY: private_token + REQ_TOKEN_KEY: cHJpdmF0ZV90b2tlbg== #REQ_TOKEN_VALUE: base64 enc "super-duper-secret" REQ_TOKEN_VALUE: c3VwZXItZHVwZXItc2VjcmV0 --- @@ -147,7 +147,7 @@ metadata: name: token-auth-sample-secret-fails type: Opaque data: - REQ_TOKEN_KEY: private_token + REQ_TOKEN_KEY: cHJpdmF0ZV90b2tlbg== #REQ_TOKEN_VALUE base64 enc "I-will-fail" REQ_TOKEN_VALUE: SS13aWxsLWZhaWw= --- diff --git a/test/server/server.py b/test/server/server.py index cfb02556..22b9a77d 100644 --- a/test/server/server.py +++ b/test/server/server.py @@ -1,7 +1,5 @@ -#from http.client import HTTPException, HTTPResponse from fastapi import FastAPI, Security, Depends, HTTPException from fastapi.security.api_key import APIKeyQuery, APIKey -#import uvicorn API_KEY_NAME="private_token" API_KEY="super-duper-secret"