Skip to content

Commit

Permalink
Kessel change user target (#3218)
Browse files Browse the repository at this point in the history
* Kessel change user target

* add logs
  • Loading branch information
g-duval authored Dec 18, 2024
1 parent fc5a734 commit c7e4ecf
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.redhat.cloud.notifications.ingress.RecipientsAuthorizationCriterion;
import com.redhat.cloud.notifications.recipients.config.RecipientsResolverConfig;
import io.quarkus.logging.Log;
import jakarta.annotation.PostConstruct;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
Expand All @@ -21,7 +22,7 @@
@ApplicationScoped
public class KesselService {

static final String SUBJECT_TYPE_USER = "user";
static final String SUBJECT_TYPE_USER = "principal";

static final String RBAC_NAMESPACE = "rbac";

Expand Down Expand Up @@ -104,6 +105,7 @@ public Set<String> lookupSubjects(RecipientsAuthorizationCriterion recipientsAut

for (Iterator<LookupSubjectsResponse> it = lookupClient.lookupSubjects(request); it.hasNext();) {
LookupSubjectsResponse response = it.next();
Log.infof("Kessel response: %s", response);
userNames.add(response.getSubject().getSubject().getId());
}
return userNames;
Expand Down

0 comments on commit c7e4ecf

Please sign in to comment.