Skip to content

Commit

Permalink
fixed secret base enc. rem. superfl. imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
jansalapatek committed Jun 14, 2022
1 parent 347808a commit 8335ced
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/resources/sidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
Expand Down Expand Up @@ -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=
---
Expand Down
2 changes: 0 additions & 2 deletions test/server/server.py
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 8335ced

Please sign in to comment.