I hereby claim:
- I am darkpixel on github.
- I am darkpixel (https://keybase.io/darkpixel) on keybase.
- I have a public key ASDzv7Fb19M0mLduW9E9ASuIOA4njGMJw-7rteVauKVzEwo
To claim this, I am signing this object:
# Quick-and-dirty how-to for wrapping salt traffic in spiped. Critiques welcome. You'll probably need to adjust slightly if you aren't using FreeBSD. | |
# There's a great write-up with pictures here: https://hackacad.net/security/2020/05/06/how-to-secure-you-salstack-salt-master-using-spiped.html | |
## Master | |
# /usr/local/etc/salt/master needs to be bound to localhost, and it's better to be explicit than implicit with your ports. | |
interface: 127.0.0.1 | |
publish_port: 4505 | |
ret_port: 4506 |
I hereby claim:
To claim this, I am signing this object:
<?xml version="1.0" encoding="utf-8"?> | |
<AdminArsenal.Export Code="PDQInventory" Name="PDQ Inventory" Version="19.0.40.0" MinimumVersion="4.0"> | |
<Collection> | |
<ReportDefinition name="Definition"> | |
<RootFilter name="Filter"> | |
<Comparison>All</Comparison> | |
<Filters type="list"> | |
<ValueFilter> | |
<Table>Service</Table> | |
<Column>Name</Column> |
<?xml version="1.0" encoding="utf-8"?> | |
<AdminArsenal.Export Code="PDQDeploy" Name="PDQ Deploy" Version="19.0.40.0" MinimumVersion="15.0"> | |
<Package> | |
<CurrentLibraryPackageVersionId value="null" /> | |
<PackageDefinition name="Definition"> | |
<Conditions type="list"> | |
<PackageStepCondition> | |
<Architecture>Both</Architecture> | |
<Version>AllServers</Version> | |
<TypeName>OperatingSystem</TypeName> |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: echoserver | |
spec: | |
selector: | |
matchLabels: | |
app: echoserver | |
replicas: 1 | |
template: |
def cycle_key(self): | |
#TODO: Errors here will tank the system, probably need some better handling... | |
old_session_key = self.session_key | |
old_session = Session.objects.get(session_key=old_session_key) | |
try: | |
cart = Cart.objects.get(session=old_session) | |
super(SessionStore, self).cycle_key() | |
new_session_key = self.session_key | |
new_session = Session.objects.get(session_key=new_session_key) | |
cart.session = new_session |