This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/envoyauth/request.go b/envoyauth/request.go | |
index f422d13c..8eeea3ba 100644 | |
--- a/envoyauth/request.go | |
+++ b/envoyauth/request.go | |
@@ -34,6 +34,7 @@ func RequestToInput(req interface{}, logger logging.Logger, protoSet *protoregis | |
var bs, rawBody []byte | |
var path, body string | |
var headers, version map[string]string | |
+ var jwt, action string | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![allow(dead_code)] | |
use std::collections::{HashMap, HashSet, VecDeque}; | |
use std::error::Error; | |
use std::fmt::{self, Debug}; | |
use std::future::Future; | |
use std::hash::Hash; | |
use std::marker::Unpin; | |
use std::ops::{Deref, DerefMut}; | |
use std::pin::Pin; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
federation: | |
selectors: | |
- {} | |
eastWestIngressGatewaySelectors: | |
- portName: tls | |
destinationSelectors: | |
- kubeServiceMatcher: | |
labels: | |
istio: ingressgateway |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run envoyproxy/envoy:v1.18.3 --mode validate --config-yaml ' | |
static_resources: | |
clusters: | |
- name: endpoint | |
connect_timeout: 15.000s | |
type: STRICT_DNS | |
lb_policy: round_robin | |
load_assignment: | |
cluster_name: endpoint | |
endpoints: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"bytes" | |
"fmt" | |
"math" | |
"strconv" | |
"strings" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function importsForFile(path) { | |
return { | |
"main.x": ["thread.x", "message.x"], | |
"thread.x": ["message.x", "contact.x"], | |
"message.x": ["contact.x"], | |
"contact.x": [], | |
}[path]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def division(n, divisor): | |
if divisor == 0 or n == None or divisor == None: | |
return None | |
x = 0 | |
counter = 0 | |
while (x + divisor) <= n: | |
x += divisor | |
counter += 1 |