Commit 27167b3
authored
Derive shortened release role names (#86)
## 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.1 parent fd88b3f commit 27167b3
4 files changed
Lines changed: 186 additions & 6 deletions
File tree
- .github/workflows
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
207 | 220 | | |
208 | 221 | | |
209 | 222 | | |
| |||
256 | 269 | | |
257 | 270 | | |
258 | 271 | | |
259 | | - | |
| 272 | + | |
260 | 273 | | |
261 | 274 | | |
262 | 275 | | |
| |||
472 | 485 | | |
473 | 486 | | |
474 | 487 | | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
475 | 501 | | |
476 | 502 | | |
477 | 503 | | |
| |||
639 | 665 | | |
640 | 666 | | |
641 | 667 | | |
642 | | - | |
| 668 | + | |
643 | 669 | | |
644 | 670 | | |
645 | 671 | | |
| |||
781 | 807 | | |
782 | 808 | | |
783 | 809 | | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
784 | 828 | | |
785 | 829 | | |
786 | 830 | | |
| |||
875 | 919 | | |
876 | 920 | | |
877 | 921 | | |
878 | | - | |
| 922 | + | |
879 | 923 | | |
880 | 924 | | |
881 | 925 | | |
| |||
899 | 943 | | |
900 | 944 | | |
901 | 945 | | |
902 | | - | |
| 946 | + | |
903 | 947 | | |
904 | 948 | | |
905 | 949 | | |
| |||
1015 | 1059 | | |
1016 | 1060 | | |
1017 | 1061 | | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
1018 | 1075 | | |
1019 | 1076 | | |
1020 | 1077 | | |
| |||
1042 | 1099 | | |
1043 | 1100 | | |
1044 | 1101 | | |
1045 | | - | |
| 1102 | + | |
1046 | 1103 | | |
1047 | 1104 | | |
1048 | 1105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
16 | 23 | | |
17 | 24 | | |
18 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
0 commit comments