Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMM-9450 Enable basic auth #411

Merged
merged 11 commits into from Apr 22, 2022
Merged

PMM-9450 Enable basic auth #411

merged 11 commits into from Apr 22, 2022

Conversation

percona-csalguero
Copy link
Contributor

@percona-csalguero percona-csalguero commented Jan 11, 2022

PMM-9450

Build: PR-2424

  • pmm-managed: PR-979

    Enable Basic Auth on new HTTP server

    This is intended to be applied on top of serve metrics handler with prometheus exporter-toolkit #393 (the re-revert) and adds a
    new parameter, the tls-config-path file that should be sent by
    pmm-managed, pointing to a file containing the credentials we use to
    enable basic auth.

    In the original implementation, we use exporter_shared library which
    receives basic auth credentials via env vars.
    Now, using Prometheus Toolkit library, we need to pass a file.

#393)" (#409)"

PR-393 was merged before we can use it properly from pmm-managed.
In order to make it work with basic auth, we need to implement the
changes in pmm-managed/mongodb exporter config to create a new file
having basic auth credentials.

This reverts commit 5e5bf25.
This is intended to be applied on top of #393 (the re-revert) and adds a
new parameter, the tls-config-path file that should be sent by
pmm-managed, pointing to a file containing the credentials we use to
enable basic auth.

In the original implementation, we use exporter_shared library which
receives basic auth credentials via env vars.
Now, using Prometheus Toolkit library, we need to pass a file.
@percona-csalguero percona-csalguero changed the title Enable basic auth [WIP] Enable basic auth Jan 11, 2022
exporter/exporter.go Outdated Show resolved Hide resolved
@denisok denisok changed the title [WIP] Enable basic auth [WIP] PMM-9450 Enable basic auth Jan 12, 2022
@it-percona-cla
Copy link

it-percona-cla commented Apr 1, 2022

CLA assistant check
All committers have signed the CLA.

@ShashankSinha252
Copy link
Contributor

@percona-csalguero , please associate with a corresponding PR for PMM server.

@tshcherban tshcherban changed the title [WIP] PMM-9450 Enable basic auth PMM-9450 Enable basic auth Apr 7, 2022
Copy link
Contributor Author

@percona-csalguero percona-csalguero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@tshcherban tshcherban merged commit ac32423 into main Apr 22, 2022
@tshcherban tshcherban deleted the enable-basic-auth branch April 22, 2022 14:05
@ShashankSinha252 ShashankSinha252 added this to the 0.32.0 milestone Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants