Skip to content

Commit

Permalink
Fixed lint issues on go code + markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
bsimonWallix committed Mar 8, 2024
1 parent 34ebf13 commit 4152a2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bastion/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ func (c *Client) newRequest(ctx context.Context, uri string, method string, json
req.Header.Add("X-Auth-User", c.bastionUser)
} else {
rawcreds := c.bastionUser + ":" + c.bastionPwd
encoded_creds := base64.StdEncoding.EncodeToString([]byte(rawcreds))
req.Header.Add("Authorization", "Basic "+encoded_creds)
encodedcreds := base64.StdEncoding.EncodeToString([]byte(rawcreds))
req.Header.Add("Authorization", "Basic "+encodedcreds)
}
if err != nil {
return "", http.StatusInternalServerError, fmt.Errorf("preparing http request: %w", err)
Expand Down
3 changes: 1 addition & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ The following arguments are supported in the `provider` block:
This is the password used to authenticate against Bastion API.
It can also be sourced from the `WALLIX_BASTION_PASSWORD`environment variable.


- **api_version** (Optional)
This is the version of api used to call api.
It can also be sourced from the `WALLIX_BASTION_API_VERSION` environment variable.
Defaults to `v3.3`.

- You have to specify either the API key **OR** the user/password couple. The latter is
the recommanded authentication method. Create a dedicated account in the Bastion with the
needed permissions according to which resources you plan to use.
needed permissions according to which resources you plan to use.

0 comments on commit 4152a2e

Please sign in to comment.