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
using FluentAssertions; | |
using Xunit; | |
// To run this example you need to reference nuget packages: Xunit and FluentAssertions. | |
namespace EqualitySample | |
{ | |
public class EqualityTestShould | |
{ | |
[Fact] |
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
using System; | |
using System.Configuration; | |
using System.Net.Http; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Web; | |
using SecurityTrap.DoNotUse; | |
[assembly: PreApplicationStartMethod(typeof(EvilCode), "RogueAction")] |
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
using System; | |
using System.Configuration; | |
using System.Text; | |
using System.Web; | |
using SecurityTrap.DoNotUse; | |
[assembly: PreApplicationStartMethod(typeof(EvilCode2), "RogueAction")] | |
namespace SecurityTrap.DoNotUse | |
{ |
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
[assembly: PreApplicationStartMethod(typeof(ZombieActivator), "Run")] | |
public static class ZombieActivator | |
{ | |
public static void Run() | |
{ | |
try | |
{ | |
if (IsThisLikelyToBeProductionEnvironment()) | |
System.Web.HttpApplication.RegisterModule(typeof(ZombieModule)); | |
} |
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
version: 2 | |
jobs: | |
provision_cluster: | |
docker: | |
- image: azuresdk/azure-cli-python | |
environment: | |
RESOURCE_GROUP: aks-poc-euw-rg | |
CLUSTER_LOCATION: westeurope | |
CONTAINER_REPOSITORY: akspoc |
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
version: 2 | |
jobs: | |
build_test_publish_image: | |
docker: | |
- image: paulinhu/netcore-docker-build:beta | |
environment: | |
ACR_NAME: akspoc | |
DOCKER_REGISTRY_URI: akspoc.azurecr.io | |
DOCKER_IMAGE_NAME_WITH_REGISTRY: akspoc.azurecr.io/template/sample-app-img |
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
# Login with your Azure subscription | |
az login | |
# Register providers required within the subscription | |
az provider register -n Microsoft.ContainerService | |
az provider register -n Microsoft.Network | |
az provider register -n Microsoft.Compute | |
# Create resource group to place AKS cluster. | |
az group create --name k8s-security-challenge-rg --location centralus |
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
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: default | |
automountServiceAccountToken: false |
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
{ | |
"compute": | |
{ | |
"location": "westeurope", | |
"name": "aks-nodepool1-XXXXXXXXXX-1", | |
"offer": "UbuntuServer", | |
"osType": "Linux", | |
"placementGroupId": "", | |
"platformFaultDomain": "0", | |
"platformUpdateDomain": "2", |
OlderNewer