Skip to content

bug: trusted publishing failed on creating new crates. #2863

Closed as not planned

Description

@blackmwk

Apache Iceberg Rust version

None

Describe the bug

See https://github.com/apache/iceberg-rust/actions/runs/29814291238/job/88581950093

it failed on publishing new crates.

To Reproduce

No response

Expected behavior

It should succeeded.

Willingness to contribute

I can contribute a fix for this bug independently

Activity

  1. added
    bug
    on Jul 21, 2026
  2. dannycjones commented on Jul 21, 2026

    @dannycjones
    Contributor

    Trusted Publishing tokens do not support creating new crates. Publish the crate manually, first

    It seems like this is just a limit of trusted publishing, I'll make sure to add this note to the release guide.

    I see the crate is live: https://crates.io/crates/iceberg-cache-moka

  3. blackmwk commented on Jul 22, 2026

    @blackmwk
    ContributorAuthor

    Yes, it's a limitation, and it seems there is no perfect solution to it. Since creating a new crate is not that frequent, I would close this issue for now.

  4. kevinjqliu commented on Jul 22, 2026

    @kevinjqliu
    Contributor

    Yep, its a crates.io publishing quirk. Heres the docs: https://crates.io/docs/trusted-publishing

    Your crate must already be published to crates.io (initial publish requires an API token)

    We can harden the publishing by removing the API token (from the github workflow) after the first version publish. And enable trusted publishing for all new versions
    For example, this is for the iceberg crate https://crates.io/crates/iceberg/settings
    Image

  5. blackmwk commented on Jul 22, 2026

    @blackmwk
    ContributorAuthor

    We can harden the publishing by removing the API token (from the github workflow) after the first version publish. And enable trusted publishing for all new versions

    It's somehow difficult to automate it in github workflow. If we want save a token in github secrets, then it becomes meaningless. If we don't save a token forever, for each release with new crates, we need to write code to adjust the workflow, it's still manual effort. So I prefer to keep it as is for now, and publish manually when we have new crates.

  6. dannycjones commented on Jul 22, 2026

    @dannycjones
    Contributor

    The other thing missing is setting up crate ownership. Manual action by committer sounds good for now.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions