You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VAULT-31184: Support identity token auth in data_artifactory_item (#22)
The primary motivation for this PR is to add support for identity token auth to the `artifactory_item` datasource. This will allow us to migrate from API auth to identity token auth. We maintain backwards compatibility with API auth and do not change any schema, except for `username` no longer being required. If no username is provided we assume token that is required is for identity token auth, not API auth.
> [!NOTE]
> Since this is a repo in the forge and public we cannot utilize the doormat action to test token auth in CI. As such, I've tested both the artifactory package and the datasource ACC tests locally using both identity token and API auth.
We also do a bit of housekeeping and update our Go modules and pin to the latest Github actions.
> [!NOTE]
> We are currently behind on `terraform-plugin-go` as the server interface now requires implementing provider functions, which we have not done yet.
* actions: pin to latest actions
* go: update deps
* bump version
* rebuild docs
* fix linter
Signed-off-by: Ryan Cragun <[email protected]>
Copy file name to clipboardExpand all lines: docs/data-sources/artifactory_item.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,15 +29,15 @@ for every criteria. This means that you can use wildcards `*` for any field. See
29
29
### Required
30
30
31
31
-`host` (String) The Artifactory API host. It should be the fully qualified base URL
32
-
-`token` (String, Sensitive) The Artifactory API token. You can sign into Artifactory and generate one.
33
-
-`username` (String) The Artifactory API user name. Depending on your login scheme this is likely an email address
32
+
-`token` (String, Sensitive) The Artifactory API Key token or identity token. API keys are deprecated so it is best to use an identity token
34
33
35
34
### Optional
36
35
37
36
-`name` (String) The name of the artifact that you're looking for
38
37
-`path` (String) The sub-path inside the Artifactory repository to search in
39
38
-`properties` (Map of String) A map of properties to match on
40
39
-`repo` (String) The Artifactory repository you want to search in
40
+
-`username` (String) The Artifactory API Key user name. Depending on your login scheme this is likely an email address. If no username is provided we'll assume you wish to use an identity token for Auth
0 commit comments