This file contains 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
[ | |
{ | |
"name": "exclude-applications-credentials-in-configuration-files-for-kube-root-ca", | |
"policyType": "postureExceptionPolicy", | |
"actions": [ | |
"alertOnly" | |
], | |
"resources": [ | |
{ | |
"designatorType": "Attributes", |
This file contains 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
2021-12-14T11:54:00.037Z [34mINFO[0m Detected OS: debian | |
2021-12-14T11:54:00.037Z [34mINFO[0m Detecting Debian vulnerabilities... | |
2021-12-14T11:54:00.053Z [34mINFO[0m Number of language-specific files: 1 | |
2021-12-14T11:54:00.053Z [34mINFO[0m Detecting jar vulnerabilities... | |
2021-12-14T11:54:00.053Z [33mWARN[0m maven constraint error ([10.5-alpha0,10.5.3.0_1]): failed to new comparer: 2 errors occurred: | |
* improper constraint: [10.5-alpha0,10.5.3.0_1] | |
* improper requirements: [] | |
This file contains 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
# module.vpc.aws_eip.nat[0]: | |
resource "aws_eip" "nat" { | |
domain = "vpc" | |
id = "eipalloc-0019409e6a452d71f" | |
network_border_group = "eu-west-1" | |
public_dns = "ec2-54-194-159-48.eu-west-1.compute.amazonaws.com" | |
public_ip = "54.194.159.48" | |
public_ipv4_pool = "amazon" | |
tags = { | |
"Name" = "eks-test-eu-west-1a" |
This file contains 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
proxy: | |
secretToken: "supersecret" | |
singleuser: | |
defaultUrl: /lab | |
image: | |
name: jupyter/minimal-notebook | |
tag: latest | |
# imagePullPolicy: Always | |
profileList: | |
- default: true |
This file contains 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
$ helm repo add jupyterhub https://jupyterhub.github.io/helm-chart/ | |
$ helm upgrade --cleanup-on-fail --install jupyterhub jupyterhub/jupyterhub --version=1.0.1 --values values.yaml |
This file contains 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
# coding=utf-8 | |
import os | |
import csv | |
import re | |
import logging | |
import optparse | |
import dedupe | |
from unidecode import unidecode |
This file contains 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
class LegalBasisDataWorkspaceSerializer(serializers.ModelSerializer): | |
def __init__(self, *args, **kwargs): | |
""" | |
Create {consent_type}_consent field for each Consent type. | |
This flattens consent status in the API response, rather than returning | |
nested serialized Consent objects | |
""" | |
super(LegalBasisDataWorkspaceSerializer, self).__init__(*args, **kwargs) |
This file contains 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
$ bandit -x ./.venv,./tests -r . | |
[main] INFO profile include tests: None | |
[main] INFO profile exclude tests: None | |
[main] INFO cli include tests: None | |
[main] INFO cli exclude tests: None | |
[main] INFO running on Python 3.7.6 | |
Run started:2020-01-07 16:40:42.356244 | |
Test results: | |
>> Issue: [B105:hardcoded_password_string] Possible hardcoded password: 'django.contrib.auth.password_validation' |
This file contains 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
#!/usr/bin/env python3 | |
from faker import Faker | |
import csv | |
import random | |
fake = Faker("en_GB") | |
org_types = [ | |
"charity", |
NewerOlder