Skip to content

Add org access token data source#131

Draft
lanwen wants to merge 2 commits intodocker:mainfrom
lanwen:oat-data-check
Draft

Add org access token data source#131
lanwen wants to merge 2 commits intodocker:mainfrom
lanwen:oat-data-check

Conversation

@lanwen
Copy link
Copy Markdown
Contributor

@lanwen lanwen commented Mar 30, 2026

Summary

  • add a docker_org_access_token data source with direct id lookup or filter-based label lookup
  • add Docker Hub org access token listing support and register the new data source
  • add acceptance coverage and generated documentation for the new data source

Testing

  • go test ./... -run ^
  • go generate ./...
  • acceptance tests not run in this environment because DOCKER_USERNAME and ACCTEST_DOCKER_ORG were unset

@nicks
Copy link
Copy Markdown
Contributor

nicks commented Mar 31, 2026

For my own education, what do you plan to use this for?

@lanwen
Copy link
Copy Markdown
Contributor Author

lanwen commented Apr 1, 2026

@nicks good question! Initially I needed OATs to be as a resource to create them alongside our infra to feed the token later to ecs (with pull permissions). Then I thought it would be nice to have a full set - data and ephemeral. Then I found that you can't create OATs with another OAT (and connection this way) - we seems missing some FGA parts here? That eliminates a bit the usefulness of the resource. So I'm lazily poking the data source for fun, as I've seen an issue with someone requesting OAT resources (#125). Perhaps I should stop here until I find a real usecase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants