Commit graph

1551 commits

Author SHA1 Message Date
Lord Hepipud
34b5d2a249 Fixes long lookups for users on large AD 2021-09-09 15:48:01 +02:00
Lord Hepipud
d36a0976bd
Merge pull request #363 from Icinga:fix/jea_pid_empty_no_continue
Fix: Unneeded continue on no JEA pid present

In case no JEA pid is present, we should not lookup any processes and simply return `False` instead.
2021-09-09 15:23:23 +02:00
Lord Hepipud
cc3f750956 Fixes unneeded continue on no JEA pid 2021-09-09 15:23:09 +02:00
Lord Hepipud
acbbc4f68b
Merge pull request #362 from Icinga:fix/repository_install_fail_fileshare
Fix: Repository component install from file share

The installation from file share locations will fail, in case no `LocalPath` is assigned to the repository configuration and is also failing by invalid escaping of the path.

This is now fixed as the `RemotePath` is the only one being required and in addition downloads from file shares of component packages is now working as intended.
2021-09-09 12:05:27 +02:00
Lord Hepipud
8a5995603a Fixes repository install from fileshare 2021-09-09 12:04:40 +02:00
Lord Hepipud
068958d79a
Merge pull request #361 from Icinga:fix/director_self_service_no_agent_install
Fix: IMC fails on Icinga Director Self-Service no Agent installation set

In case you are using the IMC and the Icinga Director Self-Service API, it can happen that once entered the Self-Service API key, the shell will only look like this:

```
Input (Default 0 and c ):
```

Without any other form content.

This occured, in case inside the Self-Service API config the entry `Installation Source` was set to `- no automatic installation -`.

This fix resolves the issue and renders the form including the settings correctly.
2021-09-09 11:05:03 +02:00
Lord Hepipud
824c4f2da2 Fixes Director Self-Service no Agent install 2021-09-09 11:04:36 +02:00
Lord Hepipud
43e71832ea Updates master to v1.7.0 2021-09-06 16:36:34 +02:00
Lord Hepipud
2833e579f4
Merge pull request #357 from Icinga:doc/icinga_for_windows_v1.6.0
Docs: Updates documentation for v1.6.0
2021-09-06 16:35:00 +02:00
Lord Hepipud
8fee6ab55c Updates documentation for v1.6.0 2021-09-06 15:33:39 +02:00
Lord Hepipud
75eeac71ef
Merge pull request #360 from Icinga:fix/plain_check_execution
Fix: Plain Plugin Cmdlet execution on shell

Fixes plain execution of plugin Cmdlets on the PowerShell, which caused an exception of being thrown before, as no check command was assigned.
2021-09-06 15:33:19 +02:00
Lord Hepipud
d59bed6595 Fixes plain plugin cmdlet execution on shell 2021-09-06 15:32:22 +02:00
Lord Hepipud
bbbc6ee8e9
Merge pull request #358 from Icinga:fix/compare_function_windows2012r2
Fix: Compare function in Windows 2012 R2
2021-09-03 21:49:56 +02:00
Lord Hepipud
7614944068 Fixes compare function in Windows 2012 R2 2021-09-03 21:49:29 +02:00
Lord Hepipud
387d46cc7f
Merge pull request #356 from Icinga:feature/imc_improvements
Feature: Adds various IMC improvements
2021-09-02 13:44:51 +02:00
Lord Hepipud
c8afe4ed4c Adds various IMC improvements 2021-09-02 13:44:17 +02:00
Lord Hepipud
0ee4bc52e7
Merge pull request #355 from Icinga:fix/cmoponent_list_snapshot_filter
Fix: Component filtering for snapshots/release
2021-09-02 13:19:04 +02:00
Lord Hepipud
c3aea7b76b Fixes component filtering for snapshots 2021-09-02 13:18:30 +02:00
Lord Hepipud
7d23c38374
Merge pull request #320 from Icinga:feature/adds_jea_profile_handling
Feature: Adds support for JEA profiles

To improve security and to get rid of most permission errors on Windows, we are going to implement a JEA profile for Icinga for Windows, which will load Cmdlets and required core functionallity from the Icinga PowerShell Framework, to allow the execution of plugins and other tasks, but in general prevents any access to configuration Cmdlets.
2021-09-02 09:24:39 +02:00
Lord Hepipud
eb8ea9a497 Adds support for JEA profiles 2021-09-02 09:23:10 +02:00
Lord Hepipud
b335a4a588
Merge pull request #354 from Icinga:feature/imc_extends_repo_management
Features: Adds extended Repository management to IMC

This will extend the current repository management within the Icinga Management Console, by allowing to list, remove, sort, enable and disable repositories.
2021-08-26 15:14:41 +02:00
Lord Hepipud
82bd5f1059 Adds extended repo management to IMC 2021-08-26 15:14:10 +02:00
Lord Hepipud
8b29f505b3
Merge pull request #353 from Icinga:fix/file_writer_non_string_values
Fix: Icinga file writer fails on input not matching string

In case we add non-string values into our Icinga file writer, the output may not what we have been expected.
To resolve this, we will add support for these default inputs:

* Hashtable -> JSON
* Array -> Listed output
* PSCustomObject -> JSON
* Everything else -> simple string conversion
2021-08-21 14:15:48 +02:00
Lord Hepipud
c7ff7f14ad Fixes non string values for file writer 2021-08-21 14:13:49 +02:00
Lord Hepipud
1241c58909
Merge pull request #352 from Icinga:fix/missing_file_creation_file_writer
Fix: File writer did not create non-existing files

Fixes newly implemented file writer, by creating files which were not existing prior to writing into them.
2021-08-21 13:45:45 +02:00
Lord Hepipud
ce35afe19b Fixes file writer, which did not create files 2021-08-21 13:44:24 +02:00
Lord Hepipud
3375d78ba2
Merge pull request #351 from Icinga:feature/fix_file_writer_corruption
Fix: File writer could cause corruption on parallel read/write

In some cases it can happen, that files are being read and written in parallel, which might cause the file of being corrupted.

This will resolve the issue, as in case of file locks we now do longer modify the file, but wait for the lock being released.
2021-08-21 13:29:40 +02:00
Lord Hepipud
59830d9b01 Fixes config and file writer corruption 2021-08-21 13:29:13 +02:00
Lord Hepipud
21f2f26c1e
Merge pull request #350 from Icinga:feature/add_skip_mkdir_on_scp_sync
Feature: Adds switch to skip mkdir on scp repo sync

Adds switch `-SkipSCPMkdir` to `Sync-IcingaRepository`, allowing to skip directory creation.
2021-08-20 18:27:19 +02:00
Lord Hepipud
8924f77c58 Adds switch to skip mkdir on scp repo sync 2021-08-20 18:26:53 +02:00
Lord Hepipud
0e68cfafd0
Merge pull request #349 from Icinga:fix/module_file_should_point_to_psd1
Fix: Module file should always point to .psd1 instead of .psm1

We have to ensure with Icinga for Windows 1.6.0 that we always point to the `.psd1` file instead of the `.psm1` file, especially when working with the `icingapowershellservice`
2021-08-20 18:15:46 +02:00
Lord Hepipud
6d5930da49 Fixes module file which should point to .psd1 2021-08-20 18:13:25 +02:00
Lord Hepipud
e370fc9ad5
Merge pull request #348 from Icinga:feature/improve_tcp_debugging
Feature: Improves debug output on TCP handling

Improves debugging output on TCP handling, to provide separate messages for incoming message size, message bytes and the send message back to the client.
2021-08-20 13:56:54 +02:00
Lord Hepipud
037ccf86aa Improves debug output on TCP handling 2021-08-20 13:55:57 +02:00
Lord Hepipud
3cdd0f0d14
Merge pull request #347 from Icinga:fix/repository_resolving
Fix: Repository resolving and validation
2021-08-20 13:48:43 +02:00
Lord Hepipud
0feef9e41a Fixes repository resolving and validation 2021-08-20 13:46:47 +02:00
Lord Hepipud
5198d02241
Merge pull request #345 from Icinga:fix/framework_env_variables_not_working
Fix: Framework environment variables not working with 1.6.0

Environment variables like `$IcingaEnums` or other similar variables were not exported with Icinga for Windows 1.6.0, causing several other modules and functions to fail.
2021-08-20 13:43:49 +02:00
Lord Hepipud
056a37d880 Fixes Framework env vars not working with 1.6.0 2021-08-20 13:43:02 +02:00
Lord Hepipud
657bc3e4fa
Merge pull request #346 from Icinga:features/supports_snapshot_name_version
Feature: Adds support for version names for snapshots

In order to easy manage different snapshot versions for different branches, we now support providing a name as version for **snapshot** packages only,

Example:

```powershell
Add-IcingaRepository -Name 'icinga-powershell-framework/doc/doc_rewrite' -RemotePath 'https://packages.icinga.com/IcingaForWindows/snapshot/icinga-powershell-framework/doc/doc_rewrite/ifw.repo.json';
Install-IcingaComponent -Name 'framework' -Version 'doc/doc_rewrite' -Snapshot -Force;
```
2021-08-20 13:41:10 +02:00
Lord Hepipud
c91b23d4a7 Adds support for version names for snapshots 2021-08-20 13:40:35 +02:00
Lord Hepipud
1dc9c93521
Merge pull request #344 from Icinga:fix/repo_links
Fix: Links to public Icinga repos

Fixes the links to publi Icinga repos `stable` and `snapshot`, by always pointing directly to `ifw.repo.json`
2021-08-20 09:12:08 +02:00
Lord Hepipud
3e4ed0af5f Fix links to public Icinga repos 2021-08-20 09:11:30 +02:00
Lord Hepipud
23c138be48
Merge pull request #343 from Icinga:fix/freeze_on_imc_missing_cmd
Fix: Freeze on IMC in case commands are not found

Fixes a freeze within Icinga Management Console, in case commands which previously existed were removed/renamed or the user applied an invalid configuration with unknown commands as install file or install command
2021-08-19 17:47:02 +02:00
Lord Hepipud
b649e2a25d Fixes freeze on IMC in case cmds are not found 2021-08-19 17:46:34 +02:00
Lord Hepipud
a6dc5138e5
Merge pull request #342 from Icinga:feature/various_imc_improvements
Feature: Adds improvements to IMC including cmd preview

Added vartious improvements to IMC, which allows a better view on the final summary form. In addition, we provide now the following new features:

* Show commands being executed inside IMC with `l`
* Use placeholder `$DefaultValues$` inside actions, to call commands directly for actions and replace `$DefaultValues$` with the value the user added into the form
2021-08-19 17:23:42 +02:00
Lord Hepipud
63be379368 Adds improvements to IMC including cmd preview 2021-08-19 17:23:07 +02:00
Lord Hepipud
25578d0d50
Merge pull request #341 from Icinga:fix/various_director_imc_fixes
Fix: Various issues with Icinga Director on IMC

Adds various fixes and improvements for the Icinga Director Self-Service API while using IMC.
2021-08-19 14:20:54 +02:00
Lord Hepipud
4b7b86785f Fixies various Icinga Director IMC issues 2021-08-19 14:19:22 +02:00
Lord Hepipud
227367999d
Merge pull request #340 from Icinga:feature/repo_management_mmc
Feature: Adds repo management to imc

Adds repository management to the Icinga Management Console
2021-08-19 09:27:41 +02:00
Lord Hepipud
7861ebf565 Adds repo management to mmc 2021-08-19 09:24:46 +02:00