Callidus2000 · @callidus2000
42 followers · 183 posts · Server ruhr.social

I‘m happy to announce the publication of my template module for Extensions on GitHub. It enables the fast creation of new SecretManagement Extensions, including many best practices and (most important) a ReadMe which describes all pitfalls I’ve fallen into and the tricks to avoid this. All learned the hard way creating SecretManagement.NetwrixPasswordSecure 😋. If only one new extension based on the template is created the work was worth it.

github.com/Callidus2000/Secret

#powershell #secretmanagement

Last updated 2 years ago

Callidus2000 · @callidus2000
36 followers · 163 posts · Server ruhr.social

Is there an 'easy' way to call private functions from nested modules?

I've got my module A with the nested module B. Now I've got a function (f) which is needed/usable from both A&B but makes no sense as a public function. Currently I've made it available as public A\f and can access it from everywhere.

And the answer 'don't use nested modules' is sadly not acceptable as this is the design pattern for extensions 😒

#powershell #secretmanagement

Last updated 3 years ago

Callidus2000 · @callidus2000
35 followers · 156 posts · Server ruhr.social

A few weeks ago I anounced tht I’m working on a extension of the module (github.com/PowerShell/SecretMa) for support of solution (formely known as ).

Today I’ve released v1.0.0 to the PowerShellGallery and to github (github.com/Callidus2000/Secret). I’d appreciate any kind of feedback.

Special prerequisite of this extension: you need the .NET SDK DLLs which get provided by the vendor to enterprise customers.

#powershell #secretmanagement #netwrix #passwordsecure #mateso #passwordsafe

Last updated 3 years ago

Callidus2000 · @callidus2000
34 followers · 74 posts · Server ruhr.social

@AndrewPlaTech
My short time goals are:
1) Complete my module for public usage.

2) Spread some insights about how PS automation can save the day (internal company TechDay)

3) Use my Fortigate Manager module to clean up our internal firewalls

#powershell #netwrixpasswordsecure #secretmanagement

Last updated 3 years ago

Callidus2000 · @callidus2000
19 followers · 30 posts · Server ruhr.social

Lets try the poll feature of my new preferred social platform 😋

I’m currently developing a extension module for , formerly . If released to the gallery the user would have to provide/side load DLLs which are only available for Enterprise customers.

Would such a module be of interest? Otherwise it will stay in-house.

#powershell #secretmanagement #netwrix #passwordsecure #mateso #passwordsafe

Last updated 3 years ago

Callidus2000 · @callidus2000
19 followers · 30 posts · Server ruhr.social

@DoctorDNS not a dll just a script based Powershell Module.

Got 3 Workarounds now, mixing them gets me up and running:
1. Test the code directly without
2. Using the RestartableSession module (my fav)
3. Use the rss command from PSModuleDevelopment

#secretmanagement

Last updated 3 years ago

Callidus2000 · @callidus2000
19 followers · 28 posts · Server ruhr.social

@jaykul
Thanks for the reference, I'll take a deep look at your module.

Currently I'm moving to @mdgrs module solution. It's was quite easy to test the extension commands directly by importing it with a prefix. But then I've tested it from and wanted to cry.... The AdditionalParameters HashTable which is automatically provided is case sensitive regarding the keys. I tend to call this nonsense and will open an issue in the main repo for this.

#secretmanagement

Last updated 3 years ago

Callidus2000 · @callidus2000
19 followers · 28 posts · Server ruhr.social

@mdgrs It is possible but cumbersome... Some aspects has to be emulated/mocked as they would be normally be handled by . Currently I'm not really convinced if the speed benefit is enough to "Temp-Ignore" your module approach.

#secretmanagement

Last updated 3 years ago

Callidus2000 · @callidus2000
19 followers · 28 posts · Server ruhr.social

@jaykul Hi, thanks, I've missed the obvious... And now I've got a usage for the 'Prefix' param of Import-Module: Coding a 'Get-Secret' and testing with 'Get-PWSSecret', nice.

While this will be my current workaround for initial dev I'll switch over to @mdgrs solution github.com/mdgrs-mei/Restartab which works perfect even if testing the Extension through .

#powershell #secretmanagement

Last updated 3 years ago

Joel Bennett · @jaykul
253 followers · 130 posts · Server fosstodon.org

@callidus2000 in my personal opinion, the extension mechanism in is the most frustrating way that they could possibly have implemented extensions. I hate almost everything about it, from the way you have to hide your module in another module, to the way it loads your module in a nested PSSession in their C# module.

In short, avoid testing _through_ SecretManagement, and test by directly loading your module.

#powershell #secretmanagement

Last updated 3 years ago

Callidus2000 · @callidus2000
16 followers · 19 posts · Server ruhr.social

Is there some dev with experience in developing a extension?

I’m facing the problem that while debugging/developing I’ve to restart my shell session to get the latest code changes activated. I’m quite annoyed 😒

#powershell #secretmanagement

Last updated 3 years ago

Hackernoon · @hackernoon_bot
164 followers · 5635 posts · Server social.platypush.tech
Hackernoon · @hackernoon_bot
164 followers · 5636 posts · Server social.platypush.tech