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
# Considerando que a máquina possua o pacote themis-core instalado é possível acessar os dados | |
>>> from themis.marshalredis import MarshalRedis | |
>>> from themis.policy import Policy | |
>>> p = Policy(MarshalRedis('redis01.domain.tld')) | |
>>> print json.dumps(pdata.as_dict, indent=2) | |
{ | |
"enable": true, | |
"jailaction": "block", | |
"actionheaders": {}, | |
"policy_name": "xxxxxxxx", |
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
swagger: "2.0" | |
info: | |
description: | | |
Koli fucking box. | |
[Learn about Swagger](http://swagger.wordnik.com) or join the IRC channel `#swagger` on irc.freenode.net. | |
For this sample, you can use the api key `special-key` to test the authorization filters | |
version: "1.0.0" | |
title: Koli API |
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
#!/bin/bash | |
searchString=$1 | |
IpSearchType=PublicIpAddress | |
if [ "$1" = "private" ]; then | |
IpSearchType=PrivateIpAddress | |
searchString=$2 | |
else | |
IpSearchType=PublicIpAddress | |
fi |
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
import urlparse | |
import requests | |
AUTH_URL = 'https://{}/public/login?integrandose=true'.format('app.lojaintegrada-staging.com.br') | |
form_data = { | |
'email': STORE_USER, | |
'senha': STORE_USER_PASSWD | |
} | |
headers = {'Content-Type': 'application/x-www-form-urlencoded'} | |
r = requests.post(AUTH_URL, data=form_data, headers=headers, allow_redirects=False, verify=False) |
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
{ | |
"kind": "ReplicationController", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "minio", | |
"labels": { | |
"app": "minio" | |
} | |
}, | |
"spec": { |
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
apiVersion: v1 | |
kind: Secret | |
data: | |
accesskey: OFRaUlkySlJXTVBUNlVNWFI2STU= | |
secretkey: Z2JzdHJPdm90TU1jZzJzTWZHVWhBNWE2RXQvRUk1QUx0SUhzb2JZaw== | |
metadata: | |
name: objectstorage-keyfile | |
labels: | |
app: minio | |
namespace: koli-system |
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
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: minio | |
labels: | |
app: minio | |
namespace: koli-system | |
spec: | |
clusterIP: 10.0.0.25 | |
ports: |
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
# clusters refers to the remote service. | |
clusters: | |
- name: remote-auth | |
cluster: | |
insecure-skip-tls-verify: true | |
server: http://192.168.0.101:8000/webhook-auth # URL of remote service to query. Must use 'https'. | |
# kubeconfig files require a context. Provide one for the API server. | |
current-context: webhook | |
contexts: |
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
apiVersion: v1 | |
kind: Secret | |
data: | |
accesskey: OFRaUlkySlJXTVBUNlVNWFI2STU= | |
secretkey: Z2JzdHJPdm90TU1jZzJzTWZHVWhBNWE2RXQvRUk1QUx0SUhzb2JZaw== | |
metadata: | |
name: objectstorage-keyfile | |
labels: | |
app: minio | |
namespace: koli-system |
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
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: minio | |
labels: | |
app: minio | |
namespace: koli-system | |
spec: | |
clusterIP: 10.100.254.40 | |
ports: |