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 | |
# EKS Token Refresh Script | |
# | |
# This script automates the process of refreshing AWS EKS authentication tokens in your kubeconfig file. | |
# It replaces AWS CLI authentication with a token-based authentication that is periodically refreshed. | |
# | |
# Usage: | |
# ./eks-token-refresh.sh | |
# |
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
{ | |
"AC-1": [ | |
"CIP-003-3 R1", | |
"CIP-003-3 R1.1", | |
"CIP-003-3 R1.2", | |
"CIP-003-3 R1.3", | |
"CIP-003-3 R2", | |
"CIP-003-3 R2.1", | |
"CIP-003-3 R2.2", | |
"CIP-003-3 R2.3", |
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: policy.open-cluster-management.io/v1 | |
kind: Policy | |
metadata: | |
name: policy-comp-operator | |
namespace: default | |
annotations: | |
policy.open-cluster-management.io/standards: NIST-CSF | |
policy.open-cluster-management.io/categories: DE.CM Security Continuous Monitoring | |
policy.open-cluster-management.io/controls: DE.CM-8 Vulnerability scans | |
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: compliance.openshift.io/v1alpha1 | |
kind: Profile | |
metadata: | |
name: ocp4-e8 | |
annotations: | |
compliance.openshift.io/platform-type: platform | |
compliance.openshift.io/platform: ocp4 | |
spec: | |
title: e8 profile | |
--- |
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: policy.mcm.ibm.com/v1alpha1 | |
kind: Policy | |
metadata: | |
name: install-compliance-operator | |
namespace: default | |
annotations: | |
policy.mcm.ibm.com/standards: NIST-CSF | |
policy.mcm.ibm.com/categories: DE.CM Security Continuous Monitoring, PR.PT Protective Technology | |
policy.mcm.ibm.com/controls: DE.CM-8 Vulnerability scans, PR.PT-3 Least Functionality | |
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
#!/bin/bash | |
# | |
# Note that this requires installing the kernel-devel package: | |
# sudo dnf install -y kernel-devel | |
# | |
# ns.c is the C code that contains our eBPF program. | |
clang -D__KERNEL__ -D__ASM_SYSREG_H \ | |
-Wunused \ | |
-Wall \ |
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 | |
set -e | |
RELEASE=$1 | |
TYPE=$2 | |
if [[ -z "$RELEASE" ]]; then | |
echo "Please provide the release as the first argument" | |
exit 1 | |
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
#!/bin/python | |
""" | |
This script is meant to print all of the projects belonging to the TripleO | |
project. | |
""" | |
import requests | |
import yaml | |
resp = requests.get('https://git.openstack.org/cgit/openstack/governance/plain/reference/projects.yaml') |
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
#!/usr/bin/env python | |
from __future__ import print_function | |
import argparse | |
import lazr.restfulclient.errors | |
import os | |
import sys | |
# import sqlite3 | |
from launchpadlib import launchpad |
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
{ | |
"admin": "role:admin", | |
"observer": "role:observer", | |
"creator": "role:creator", | |
"audit": "role:audit", | |
"service_admin": "role:key-manager:service-admin", | |
"admin_or_user_does_not_work": "project_id:%(project_id)s", | |
"admin_or_user": "rule:admin or project_id:%(project_id)s", | |
"admin_or_creator": "rule:admin or rule:creator", | |
"all_but_audit": "rule:admin or rule:observer or rule:creator", |
NewerOlder