Skip to content

DO_NOT_MERGE: Feature branch CI/CD tracking #4130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 26 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
5e2cfcc
CLOUDP-329791: refactor auth check (#4036)
cveticm Jul 11, 2025
224eacb
CLOUDP-330675: Reworks `atlas auth login` flow (#4038)
cveticm Jul 16, 2025
1cc527f
CLOUDP-330561: Moves unauth error check to common errors (#4043)
cveticm Jul 23, 2025
fa8979f
CLOUDP-329797: Make `atlas config init` alias of `atlas auth login` (…
cveticm Jul 23, 2025
afeaa7a
CLOUDP-331543: Replace register flow with login flow (#4051)
cveticm Jul 23, 2025
25af187
CLOUDP-332913: [AtlasCLI] Decouple profile from viper (#4050)
jeroenvervaeke Jul 25, 2025
0b78713
chore: Restores changes from #4036 (#4063)
cveticm Jul 30, 2025
9105693
CLOUDP-330235: Update config to support service accounts (#4061)
cveticm Jul 31, 2025
eb23c5c
CLOUDP-330236: Adds NewServiceAccountTransport (#4075)
cveticm Aug 1, 2025
4a49db9
CLOUDP-329787: Make Service Account transport available in httpClient…
cveticm Aug 6, 2025
ce7c72a
CLOUDP-329793: Replace L1 transport (#4096)
cveticm Aug 7, 2025
7733429
CLOUDP-333260: delete api keys on logout (#4105)
blva Aug 7, 2025
87953c8
CLOUDP-329788: Send telemetry property auth_method = service_account …
cveticm Aug 7, 2025
29e621d
chore: add more tests to logout before updating to config delete (#4107)
blva Aug 7, 2025
a18f6f5
CLOUDP-329800: reuse logout and deprecate config delete (#4112)
blva Aug 11, 2025
15b6220
CLOUDP-329800: Remove force when calling logout (#4117)
blva Aug 11, 2025
d5975ee
CLOUDP-329801: [AtlasCLI] Implement secure credential storage (#4120)
jeroenvervaeke Aug 12, 2025
f4dc6ef
chore: merge from master (#4129)
blva Aug 12, 2025
e0da8d1
CLOUDP-329796: Enable login via Service Account (#4118)
cveticm Aug 12, 2025
d6576c3
chore: login help (#4132)
cveticm Aug 13, 2025
520ac08
chore: merge from master (#4131)
blva Aug 13, 2025
c2c302c
chore: merge all of master to feature branch (#4137)
blva Aug 13, 2025
4ff78c2
CLOUDP-333521: [AtlasCLI] [Mac] Write e2e test for migration to secur…
jeroenvervaeke Aug 13, 2025
a2e66ed
CLOUDP-337696: Enable logout from Service Account (#4139)
cveticm Aug 14, 2025
f310410
CLOUDP-329803: [AtlasCLI] Document secure credential storage (#4140)
jeroenvervaeke Aug 14, 2025
d9d6c48
CLOUDP-329808: Adds service account e2e test (#4141)
cveticm Aug 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .atlas-sdk-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20250312005
v20250312006
10 changes: 5 additions & 5 deletions .github/workflows/autoupdate-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
Expand All @@ -31,7 +31,7 @@ jobs:
- name: Find JIRA ticket
id: find
if: steps.verify-changed-files.outputs.files_changed == 'true'
uses: mongodb/apix-action/find-jira@3024080388613583e3bd119bfb1ab4b4dbf43c42
uses: mongodb/apix-action/find-jira@6c3fde402c21942fa46cde003f190c2b23c59530
with:
token: ${{ secrets.JIRA_API_TOKEN }}
jql: project = CLOUDP and summary ~ "Bump Atlas GO SDK to '${{ steps.version.outputs.VERSION }}'"
Expand All @@ -40,7 +40,7 @@ jobs:
run: |
echo "JIRA_KEY=${{steps.find.outputs.issue-key}}" >> "$GITHUB_ENV"
- name: Create JIRA ticket
uses: mongodb/apix-action/create-jira@3024080388613583e3bd119bfb1ab4b4dbf43c42
uses: mongodb/apix-action/create-jira@6c3fde402c21942fa46cde003f190c2b23c59530
id: create
if: (steps.verify-changed-files.outputs.files_changed == 'true') && (steps.find.outputs.found == 'false')
with:
Expand All @@ -56,7 +56,7 @@ jobs:
"fields": {
"fixVersions": [
{
"id": "41805"
"name": "next-atlascli-release"
}
],
"customfield_12751": [
Expand All @@ -76,7 +76,7 @@ jobs:
- name: set Apix Bot token
if: steps.verify-changed-files.outputs.files_changed == 'true'
id: app-token
uses: mongodb/apix-action/token@3024080388613583e3bd119bfb1ab4b4dbf43c42
uses: mongodb/apix-action/token@6c3fde402c21942fa46cde003f190c2b23c59530
with:
app-id: ${{ secrets.APIXBOT_APP_ID }}
private-key: ${{ secrets.APIXBOT_APP_PEM }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/autoupdate-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
Expand All @@ -30,7 +30,7 @@ jobs:
- name: Find JIRA ticket
id: find
if: env.FILES_CHANGED == 'true'
uses: mongodb/apix-action/find-jira@3024080388613583e3bd119bfb1ab4b4dbf43c42
uses: mongodb/apix-action/find-jira@6c3fde402c21942fa46cde003f190c2b23c59530
with:
token: ${{ secrets.JIRA_API_TOKEN }}
jql: project = CLOUDP AND status NOT IN (Closed, Resolved) AND summary ~ "Update Autogenerated Commands"
Expand All @@ -39,7 +39,7 @@ jobs:
run: |
echo "JIRA_KEY=${{steps.find.outputs.issue-key}}" >> "$GITHUB_ENV"
- name: Create JIRA ticket
uses: mongodb/apix-action/create-jira@3024080388613583e3bd119bfb1ab4b4dbf43c42
uses: mongodb/apix-action/create-jira@6c3fde402c21942fa46cde003f190c2b23c59530
id: create
if: (env.FILES_CHANGED == 'true') && (steps.find.outputs.found == 'false')
with:
Expand All @@ -55,7 +55,7 @@ jobs:
"fields": {
"fixVersions": [
{
"id": "41805"
"name": "next-atlascli-release"
}
],
"customfield_12751": [
Expand All @@ -75,7 +75,7 @@ jobs:
- name: set Apix Bot token
if: env.FILES_CHANGED == 'true'
id: app-token
uses: mongodb/apix-action/token@3024080388613583e3bd119bfb1ab4b4dbf43c42
uses: mongodb/apix-action/token@6c3fde402c21942fa46cde003f190c2b23c59530
with:
app-id: ${{ secrets.APIXBOT_APP_ID }}
private-key: ${{ secrets.APIXBOT_APP_PEM }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/breaking-changes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
ref: ${{ github.event.pull_request.base.sha }}
- name: Install Go
Expand All @@ -39,13 +39,13 @@ jobs:
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Download manifest
uses: actions/download-artifact@v4
uses: actions/download-artifact@v5
with:
name: breaking-changes-manifest
- name: Run breaking changes validator
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/close-jira.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
JIRA_KEY=$(gh pr view "$URL" --comments | grep 'was created for internal tracking' | grep -oE 'CLOUDP-[0-9]+' | head -1)
echo "JIRA_KEY=$JIRA_KEY" >> "$GITHUB_ENV"
- name: Close JIRA ticket
uses: mongodb/apix-action/transition-jira@v8
uses: mongodb/apix-action/transition-jira@v13
with:
token: ${{ secrets.JIRA_API_TOKEN }}
issue-key: ${{ env.JIRA_KEY }}
Expand Down
71 changes: 55 additions & 16 deletions .github/workflows/code-health.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Install Go
uses: actions/setup-go@v5
with:
Expand All @@ -38,7 +38,7 @@ jobs:
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Install Go
Expand All @@ -50,6 +50,7 @@ jobs:
go install github.com/mattn/[email protected]
- run: make unit-test
- name: Send coverage
if: matrix.os == 'ubuntu-latest'
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: goveralls -parallel -coverprofile="$COVERAGE" -ignore=test/* -service=github
Expand All @@ -68,7 +69,7 @@ jobs:
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Install Go
uses: actions/setup-go@v5
with:
Expand All @@ -87,7 +88,7 @@ jobs:
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Install Go
uses: actions/setup-go@v5
with:
Expand All @@ -101,7 +102,7 @@ jobs:
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Install Go
uses: actions/setup-go@v5
with:
Expand All @@ -128,7 +129,7 @@ jobs:
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Install Go
uses: actions/setup-go@v5
with:
Expand All @@ -155,7 +156,7 @@ jobs:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Download actionlint
id: get_actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
Expand All @@ -172,7 +173,7 @@ jobs:
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Install Go
uses: actions/setup-go@v5
with:
Expand All @@ -199,7 +200,7 @@ jobs:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Install ShellCheck
run: |
sudo apt-get update
Expand All @@ -226,7 +227,7 @@ jobs:
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Install Go
uses: actions/setup-go@v5
with:
Expand All @@ -253,7 +254,7 @@ jobs:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Install Go
uses: actions/setup-go@v5
with:
Expand All @@ -266,7 +267,7 @@ jobs:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Install Go
uses: actions/setup-go@v5
with:
Expand All @@ -282,7 +283,7 @@ jobs:
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- name: Check out the repo
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Linting
uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf
with:
Expand Down Expand Up @@ -315,7 +316,7 @@ jobs:
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Install Go
Expand All @@ -327,11 +328,49 @@ jobs:
go install github.com/mattn/[email protected]
- name: set Apix Bot token
id: app-token
uses: mongodb/apix-action/token@3024080388613583e3bd119bfb1ab4b4dbf43c42
uses: mongodb/apix-action/token@6c3fde402c21942fa46cde003f190c2b23c59530
with:
app-id: ${{ secrets.APIXBOT_APP_ID }}
private-key: ${{ secrets.APIXBOT_APP_PEM }}
- run: make e2e-test-snapshots
- run: make build
- id: config-path
env:
EDITOR: echo
run: echo "CONFIG_PATH=$(./bin/atlas config edit 2>/dev/null)" >> "$GITHUB_OUTPUT"
- env:
CONFIG_PATH: ${{ steps.config-path.outputs.CONFIG_PATH }}
CONFIG_CONTENT: |
skip_update_check = true

[__e2e]
org_id = 'a0123456789abcdef012345a'
project_id = 'b0123456789abcdef012345b'
public_api_key = 'ABCDEF01'
private_api_key = '12345678-abcd-ef01-2345-6789abcdef01'
ops_manager_url = 'http://localhost:8080/'
service = 'cloud'
telemetry_enabled = false
output = 'plaintext'

[__e2e_snapshot]
org_id = 'a0123456789abcdef012345a'
project_id = 'b0123456789abcdef012345b'
public_api_key = 'ABCDEF01'
private_api_key = '12345678-abcd-ef01-2345-6789abcdef01'
ops_manager_url = 'http://localhost:8080/'
service = 'cloud'
telemetry_enabled = false
output = 'plaintext'
run: |
echo "$CONFIG_CONTENT" > "$CONFIG_PATH"
- run: |
set +e
make e2e-test-snapshots
EXIT_CODE=$?
if [ $EXIT_CODE -ne 0 ]; then
echo "::error::Snapshot tests failed, consider adding label 'update-snapshots' to re-generate them"
fi
exit $EXIT_CODE
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
TEST_CMD: gotestsum --junitfile e2e-tests.xml --format standard-verbose --
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/dependabot-create-jira-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- name: Checkout code
uses: actions/checkout@v4.1.1
uses: actions/checkout@v5
with:
fetch-depth: 2
- name: set Apix Bot token
id: app-token
uses: mongodb/apix-action/token@3024080388613583e3bd119bfb1ab4b4dbf43c42
uses: mongodb/apix-action/token@6c3fde402c21942fa46cde003f190c2b23c59530
with:
app-id: ${{ secrets.APIXBOT_APP_ID }}
private-key: ${{ secrets.APIXBOT_APP_PEM }}
Expand All @@ -40,7 +40,7 @@ jobs:
echo "JIRA_TEAM=$JIRA_TEAM"
echo "assigned_team=$JIRA_TEAM" >> "${GITHUB_OUTPUT}"
- name: Create JIRA ticket
uses: mongodb/apix-action/create-jira@v8
uses: mongodb/apix-action/create-jira@v13
id: create
with:
token: ${{ secrets.JIRA_API_TOKEN }}
Expand All @@ -55,7 +55,7 @@ jobs:
"fields": {
"fixVersions": [
{
"id": "41805"
"name": "next-atlascli-release"
}
],
"customfield_12751": [
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dependabot-update-purls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
config: ${{ vars.PERMISSIONS_CONFIG }}
- name: Set Apix Bot token
id: app-token
uses: mongodb/apix-action/token@3024080388613583e3bd119bfb1ab4b4dbf43c42
uses: mongodb/apix-action/token@6c3fde402c21942fa46cde003f190c2b23c59530
with:
app-id: ${{ secrets.APIXBOT_APP_ID }}
private-key: ${{ secrets.APIXBOT_APP_PEM }}
- name: Checkout code
uses: actions/checkout@v4.1.1
uses: actions/checkout@v5
with:
ref: ${{ github.head_ref }}
token: ${{ steps.app-token.outputs.token }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- name: Check out code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- name: Set date
id: set-date
run: |
Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:
username: "${{ secrets.DOCKERHUB_USER }}"
password: "${{ secrets.DOCKERHUB_SECRET }}"
- name: Install Cosign
uses: sigstore/cosign-installer@398d4b0eeef1380460a10c8013a76f728fb906ac
uses: sigstore/cosign-installer@d58896d6a1865668819e1d91763c7751a165e159
with:
cosign-release: 'v2.2.3'
- name: Verify Signature Docker Image
Expand Down Expand Up @@ -215,7 +215,7 @@ jobs:
username: "${{ secrets.QUAY_USER }}"
password: "${{ secrets.QUAY_TOKEN }}"
- name: Install Cosign
uses: sigstore/cosign-installer@398d4b0eeef1380460a10c8013a76f728fb906ac
uses: sigstore/cosign-installer@d58896d6a1865668819e1d91763c7751a165e159
with:
cosign-release: 'v2.2.3'
- name: Verify Signature Quay Image
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate-augmented-sbom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
config: ${{ vars.PERMISSIONS_CONFIG }}

- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@v5

- uses: actions/setup-go@v5
with:
Expand Down
Loading