Thanks to visit codestin.com
Credit goes to github.com

Skip to content

OIDC Authentication Support #617

@lumaier

Description

@lumaier

Issue

PGSync can't authenticate itself to OpenSearch using OIDC. Therefore, "Basic Auth" needs to be enabled in OpenSearch even when an IAM solution like Keycloak is used for all other services connecting to OpenSearch.

Goal

Being able to authenticate to OpenSearch over OIDC's client credential flow.

Requirements

PGSync can be given:

  • The root certificate
  • The token URL
  • The client id
  • The client secret

Then, PGSync fetches a JWT from the url using the client id and secret, validates the response using the certificate and uses this JWT to authenticate to OpenSearch. Before the JWT expires, it is refreshed.

Misc

I see that there are some parts in the code concerning bearer tokens. However, it seems to be incomplete and the documentation on pgsync.com never references these parts.

We would appreciate if you could add OIDC support to PGSync.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions