Skip to content

Casdoor integration not possible because of hardcoded config values when running on K8S #585

@jazzshu

Description

@jazzshu

I've deployed pulsar-manager in my kubernetes environment accessible through an Ingress. Problem is that only one user at a time is allowed to access the Admin UI. Therefore I wanted to experiment with Casdoor SSO to see if it would solve the issue.

I deployed Casdoor on a separate namespace using the Helm chart, created Organization and Application.

I was able to set these config for the backend by injecting them in the Configmap of the pulsar manager app.

But for the frontend, how am I supposed to inject these values if they're hardcoded? Isn't it possible to parametrize these values? I don't want to build a custom Docker image just for this.

This is what I'm referring to: https://github.com/apache/pulsar-manager/tree/master#step4-configure-front-end-code

This part is hardcoded in the frontend code:

const config = {
  serverUrl: "http://localhost:7001",
  clientId: "6ba06c1e1a30929fdda7",
  organizationName: "pulsar",
  appName: "app-plusar",
  redirectPath: "/#callback",
};

I need to change serverUrl, clientId, organizationName and appName. Why am I not allowed to do this through env variables?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions