pulumi / pulumi-ise

Apache License 2.0
0 stars 0 forks source link

Every action on the provider results in the api calls being output to the console. #9

Open zbuchheit opened 2 months ago

zbuchheit commented 2 months ago

What happened?

While using the provider, all resources I was creating or functions I was using resulted in the corresponding api call being logged to the output.

Example

import * as pulumi from "@pulumi/pulumi";
import * as ise from "@pulumi/ise";

    const username = process.env["ISE_USERNAME"] || "";
    const password = process.env["ISE_PASSWORD"] || "";
    if (username === "" || password === "") {
        throw new Error("Missing ISE username and/or password");
    }

    const url = process.env["ISE_URL"] || "";
    if (url === "") {
        throw new Error("Missing ISE URL");
    }

    const provider = new ise.Provider("ise", {
        username: username,
        password: password,
        url: url,
        retries: 0
    });

    const pulumiEmployeeGroup = new ise.identitymanagement.UserIdentityGroup("pulumi-employee-group", {
        name: "PulumiEmployeeGroup",
        description: "My pulumi employee identity group",
    });
Updating (dev):
     Type                                         Name                   Status              Info
 +   pulumi:pulumi:Stack                          zbuchheit-ise-dev      created (2s)        3 messages
 +   ├─ pulumi:providers:ise                      ise                    created (0.06s)
 +   └─ ise:identitymanagement:UserIdentityGroup  pulumi-employee-group  created (0.44s)
Diagnostics:
  pulumi:pulumi:Stack (zbuchheit-ise-dev):
    2024/05/10 01:32:35 [DEBUG] HTTP Request: POST, https://{REDACTED}/ers/config/identitygroup, {{"IdentityGroup":{"name":"PulumiEmployeeGroup","description":"My pulumi employee identity group"}}}
    2024/05/10 01:32:36 [DEBUG] HTTP Response:
    2024/05/10 01:32:36 [DEBUG] Exit from Do method

Output of pulumi about

CLI
Version      3.115.2
Go Version   go1.22.2
Go Compiler  gc

Plugins
KIND      NAME    VERSION
resource  ise     0.1.1
language  nodejs  unknown

Host
OS       Microsoft Windows Server 2022 Datacenter
Version  10.0.20348 Build 20348
Arch     x86_64

This project is written in nodejs: executable='C:\Program Files\nodejs\node.exe' version='v20.13.1'

Backend
Name           EC2AMAZ-V236MOS
URL            file://~
User           EC2AMAZ-V236MOS\Administrator
Organizations
Token type     personal

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

VenelinMartinov commented 2 months ago

Thanks for reporting and for the detailed repro!

Unfortunately, we'd need to sort out access credentials for the provider before we can address issues here.

Opened https://github.com/pulumi/pulumi-ise/issues/16