Skip to content

Derive shortened release role names#86

Merged
gontzess merged 2 commits into
mainfrom
gontzess/shorten-gha-artifact-role-names
May 27, 2026
Merged

Derive shortened release role names#86
gontzess merged 2 commits into
mainfrom
gontzess/shorten-gha-artifact-role-names

Conversation

@gontzess
Copy link
Copy Markdown
Contributor

@gontzess gontzess commented May 26, 2026

Why

The reusable connector release workflow assumes artifact and ECR push roles whose names are derived from repository names. Long connector repository names can exceed the AWS IAM 64-character role-name limit, so the workflow needs to derive the same shortened names that ops creates.

What this changes

Adds a checked-in helper script for deterministic IAM role-name derivation and uses it before AWS role assumption in the standard release jobs. Existing short names are unchanged; over-limit names keep the first 55 characters plus an 8-character SHA-256 prefix.

Cross-review follow-up added expanded golden vectors and sets LC_ALL=C so bash length and slicing semantics match the Go implementations byte-for-byte.

Validation

  • make test
  • yq "." .github/workflows/release.yaml >/dev/null
  • git diff --check

Merge order

Merge with ductone/ops#7767 and ConductorOne/github-axiomatic-workflows#1 before relying on shortened names for long connector repositories.

@gontzess gontzess merged commit 27167b3 into main May 27, 2026
2 checks passed
@gontzess gontzess deleted the gontzess/shorten-gha-artifact-role-names branch May 27, 2026 18:00
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