- Create RSA keys for CA cert, server cert - this will output
ca-key.key
andserver-key.key
openssl genrsa -out ca.key 4096
openssl genrsa -out server.key 4096
- Create a
ca.conf
ca config file
name: CI | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] |
function endsWith(x,y) { | |
let index = x.lastIndexOf(y); | |
return x.lastIndexOf(y) === x.length - y.length; | |
} | |
// comment |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
inputs: | |
build_run_id_to_deploy: | |
description: 'the build run id to download for deploy' | |
required: true | |
default: '1703586018' | |
env: | |
build_run_id_to_deploy: '1703586018' |
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]" | |
$headers.Add("Accept", "application/vnd.github.v3+json") | |
$headers.Add("Authorization", "Bearer <add your PAT here>") | |
$headers.Add("Content-Type", "application/json") | |
$body = "{ `n `"tag_name`": `"newest`",`n `"previous_tag_name`": `"newer`"`n}" | |
$response = Invoke-RestMethod 'https://api.github.com/repos/services-octoshift-demo/Test-Octoshift-2/releases/generate-notes' -Method 'POST' -Headers $headers -Body $body | |
$response | ConvertTo-Json |
ca-key.key
and server-key.key
openssl genrsa -out ca.key 4096
openssl genrsa -out server.key 4096
ca.conf
ca config file
apiVersion: actions.summerwind.dev/v1alpha1 | |
kind: RunnerDeployment | |
metadata: | |
name: joshjohanning-org-runner | |
spec: | |
replicas: 1 | |
template: | |
spec: | |
organization: joshjohanning-org | |
group: k8s-group |
{ | |
"Version": "11.9", | |
"ChangeSetMappingFile": null, | |
"Source": { | |
"$type": "TfsTeamProjectConfig", | |
"Collection": "https://dev.azure.com/SOURCE_ORG", | |
"Project": "Demos", | |
"ReflectedWorkItemIDFieldName": "Custom.ReflectedWorkItemId", | |
"AllowCrossProjectLinking": false, | |
"AuthenticationMode": "Prompt", |
using System; | |
using System.Security.Cryptography; | |
class WeakEncryption | |
{ | |
public static byte[] encryptString() | |
{ | |
SymmetricAlgorithm serviceProvider = new DESCryptoServiceProvider(); | |
byte[] key = { 16, 22, 240, 11, 18, 150, 192, 21 }; | |
serviceProvider.Key = key; | |
ICryptoTransform encryptor = serviceProvider.CreateEncryptor(); |
dotnet add src/MyProject.csproj package Microsoft.Data.OData -v 5.0.1 |
A short 30m overview
https://josh-ops.com/posts/lap-around-github-advanced-security/