ciis0 / ciis0.github.io Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://ciis0.de/
Home Page: https://ciis0.de/
extract encrypted key (esec.b64
) from XML
<xenc:EncryptedKey xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" Id="EK-b2af33bb-aacd-4b6f-bbbf-cada8d8ecbee">
<xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/>
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<wsse:SecurityTokenReference>
<!-- ... --->
</wsse:SecurityTokenReference>
</ds:KeyInfo>
<xenc:CipherData>
<xenc:CipherValue><!-- enc.b64 --></xenc:CipherValue>
</xenc:CipherData>
<xenc:ReferenceList>
<xenc:DataReference URI="#ED-585a0a6b-36f0-4d5e-9052-f98463810da0"/>
</xenc:ReferenceList>
</xenc:EncryptedKey>
extract encrypted data (edat.b64
) from XML
<xenc:EncryptedData xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
Id="ED-585a0a6b-36f0-4d5e-9052-f98463810da0"
Type="http://www.w3.org/2001/04/xmlenc#Content">
<xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc"/>
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd"
wsse11:TokenType="http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#EncryptedKey">
<wsse:Reference URI="#EK-b2af33bb-aacd-4b6f-bbbf-cada8d8ecbee"/>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
<xenc:CipherData>
<xenc:CipherValue>
<!-- edat.b64 -->
</xenc:CipherValue>
</xenc:CipherData>
</xenc:EncryptedData>
get key as pem (key.pem
)
pkey.pem |
Private Key |
esec.b64 |
Encrypted Secret |
edat.b64 |
Encrypted data |
# decrypt secret
base64 -d esec.b64 > esec
openssl pkeyutl -decrypt -in esec -inkey key.pem > dkey
# split data and IV
base64 -d edat.b64 > edat
dd if=edat of=edat.iv bs=1 count=16
dd if=edat of=edat.dt bs=1 skip=16
# decrypt
openssl enc -d -in edat.dt -iv $(xxd -p edat.iv) -K $(xxd -p dkey | tr -d "\n ") -aes-256-cbc > dec.xml
if you use domains other than .localhost (e.g. my-keycloak.test vs. my-keycloak.localhost) https connections are terribly slow!
if you use cpsScm you can use checkout scm
, with cps
you need to put configure scm in pipeline
jboss on windows is slow due to MS defender, running in WSL is faster
use sftp+rsync to copy exploded archive
rotate log files
restart
https://gist.github.com/ciis0/b527b420b82605ef799dfd311992e3bf
generator = exec via ~/.kustomize/plugin/... + generator
spec in kustomization YAMLs
wrapper = script that wraps generate resources (which are referenced in kustomizations via resources
) and the runs kustomize
detectMultilineErrors
https://github.com/openshift/cluster-logging-operator/blob/54a9918fb40a4dbb163e4661e58ba06e1962cf1c/internal/generator/fluentd/pipeline_to_output.go#L65-L71matchMultilineDetectException
https://github.com/openshift/cluster-logging-operator/blob/0516fdfb40689381d5c4f216db7c85692c247737/internal/generator/fluentd/multiline_detect_exceptions.go#L4-L12@type detect_exceptions
https://github.com/GoogleCloudPlatform/fluent-plugin-detect-exceptions/blob/5a3715f0b6b1edd536ca9a5cab3f7ab1be53dedb/lib/fluent/plugin/out_detect_exceptions.rb#L42if you have a big multi-module project with multiple deployables, the it gets quite complicated to keep build times low, for example by building and testing only what changed.
it looks like bazel can do this.
problems that arose while investigating this:
\\wsl$
) might workcat <(echo '{"index":"app-*","ignore_unavailable":true}') <(jq -c . kib.json) | oc exec -i -n openshift-logging -c elasticsearch elasticsearch-cdm-m8fggxfn-3-5bb4f58d94-5jvgl -- curl -vk https://elasticsearch:9200/_msearch --data-binary @- -H 'Content-Type: application/json' -H "Authorization: Bearer $(oc whoami -t)" | jq -C | less
kib.json
: Kibana Discover -> Inspect -> Request
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.