stachelritter / checkmk-powershell Goto Github PK
View Code? Open in Web Editor NEWUnoffical PowerShell module for interacting with CheckMKs RESTful API
License: GNU General Public License v3.0
Unoffical PowerShell module for interacting with CheckMKs RESTful API
License: GNU General Public License v3.0
Hallo,
aktuell wird das secret/passwort innerhalb des Moduls in der Funktion "Get-CMKHeader" verwaltet.
Es wird hier eine Passwortdatei im Benutzerprofil angelegt - Das Passwort muss dabei regelmäßig (hard coded alle 185 Tage) erneuert werden.
Ausnahmen für bestimmte Benutzernamen sind auch wiederum im code hinterlegt:
Zeile 98: (($env:username -like '*$') -or ($Username -eq 'automation'))
Das erschwert Automatisierungen und Nutzung verschiedener automations-user, die andere usernames haben.
Das secret management sollte grundsätzlich außerhalb dieses Moduls stattfinden, dann wäre die Nutzung von z.B. KeePass-APIs, powershell secretstore oder anderen Passwort-Managern, einschließlich des hier abgebildeten Konstrukts möglich.
Als Vorschlag würde ich in der Funktion Get-CMKConnection
neben dem Parameter $Username
zusätzlich einen Parameter [SecureString]$Secret
einführen, an welchen das Passwort übergeben wird.
Was sagst du dazu?
Ich kann gern einen Pull request dazu einstellen.
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.