🐛 fix: restore plugin auth and proxy connection info

This commit is contained in:
2026-08-13 02:32:39 +07:00
parent 3df22125dd
commit 5567ac6594
20 changed files with 141 additions and 65 deletions
@@ -9,7 +9,11 @@ import type {
ReverseProxyRepository,
ReverseProxyUpdateInput,
} from "../../domain/repositories/reverse-proxy.repository";
import type { OperatorResourceSync } from "../../services/operator-resource-sync";
import type { K8sService } from "../../services/k8s";
import {
type OperatorResourceSync,
operatorResourceName,
} from "../../services/operator-resource-sync";
import type { IReverseProxyService } from "../interfaces/reverse-proxy.service.interface";
import { BaseCrudService } from "./base-crud.service";
@@ -29,6 +33,7 @@ export class ReverseProxyService
{
constructor(
reverseProxyRepo: ReverseProxyRepository,
private k8sService: K8sService,
private operatorResourceSync: OperatorResourceSync
) {
super(
@@ -79,4 +84,10 @@ export class ReverseProxyService
await super.deleteEnvVariable(proxyId, key);
await this.operatorResourceSync.syncReverseProxyById(proxyId);
}
async getConnectionInfo(proxyId: string) {
const proxy = await this.getReverseProxyById(proxyId);
const serviceName = `${String(proxy.type).toLowerCase()}-${operatorResourceName(proxyId)}`;
return this.k8sService.getServerConnectionInfo(serviceName);
}
}