Skip to content

efm_config_post hook #248

@sebasmannem

Description

@sebasmannem

Proposed fix

In our setup we run into issues with efm.
In short: It is a sudo EXEC issue due to our higher security policies. More below...

Therefore I would like to suggest an efm_post_config hook which would run just after all config steps and can be used to fix issues like these.
This may well be a very specific issue on our end, but others may have other issues which might use a efm_post_config hook as well.

I have created a PR (#249) for a resolution.

EFM sudo EXEC Issue

In short, we have set sudo config Default NOEXEC which means that all sudo rules require EXEC to be set if they execute other commands.
This is a security setting which we set on all systems, cannot leave out for Postgres systems, and will not leave out entirely.
TPA uses ansible sudoers_module which has no option to set EXEC (only a no-exec option).
We have created a sudoers file, which does work properly.
But whenever we run TPA, it creates a sudoers.d file, which breaks our sudoers config, after which it tries to start or restart the service, which does not work properly anymore, due to the broken sudo config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions