Skip to content

Commit 531025e

Browse files
committed
Merge remote-tracking branch 'origin/main' into SUP-1881
2 parents 81068ad + e81d6d8 commit 531025e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+868
-208
lines changed

.buildkite/pipeline.deploy.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,22 @@ steps:
66
if: |
77
build.branch == "main"
88
agents:
9-
queue: deploy
9+
queue: elastic-runners
1010
plugins:
11-
ecr#v2.7.0:
12-
login: true
13-
account-ids: ${ECR_ACCOUNT_ID}
11+
- aws-assume-role-with-web-identity#v1.0.0:
12+
role-arn: arn:aws:iam::${ECR_ACCOUNT_ID}:role/pipeline-buildkite-docs-main
13+
- ecr#v2.7.0:
14+
login: true
15+
account-ids: ${ECR_ACCOUNT_ID}
1416

1517
- name: ":ecr: ECR Vulnerabilities Scan"
1618
command: "true"
1719
agents:
18-
queue: deploy
20+
queue: elastic-runners
1921
depends_on: "ecr-push"
2022
plugins:
23+
- aws-assume-role-with-web-identity#v1.0.0:
24+
role-arn: arn:aws:iam::${ECR_ACCOUNT_ID}:role/pipeline-buildkite-docs-main
2125
- buildkite/ecr-scan-results#v1.2.0:
2226
image-name: "${ECR_REPO}:${BUILDKITE_BUILD_NUMBER}"
2327
ignore:
@@ -38,6 +42,9 @@ steps:
3842
- CVE-2023-5678 # openssl 3.0.11-1~deb12u1
3943
- CVE-2023-50495 # ncurses 6.4-4
4044
- CVE-2024-0567 # gnutls28 3.7.9-2+deb12u1
45+
- CVE-2023-50387 # systemd 252.17-1~deb12u1
46+
- CVE-2024-0553 # gnutls28 3.7.9-2
47+
- CVE-2024-0567 # gnutls28 3.7.9-2+deb12u1
4148

4249
# If the current user is part of the deploy team, then wait for everything to
4350
# finish before deploying
@@ -61,8 +68,11 @@ steps:
6168
concurrency: 1
6269
concurrency_group: docs-deploy
6370
agents:
64-
queue: deploy
71+
queue: elastic-runners
6572
command: scripts/deploy-ecs
73+
plugins:
74+
- aws-assume-role-with-web-identity#v1.0.0:
75+
role-arn: arn:aws:iam::${ECR_ACCOUNT_ID}:role/pipeline-buildkite-docs-main
6676

6777
- wait
6878

data/content/agent_attributes.yaml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,25 @@ attributes:
44
default_value: None
55
required: true
66
desc: |
7-
The agent registration token from your organization’s _Agents_ page, used only to register new agents. To get your token, log in to Buildkite, navigate to _Agents_, then select _Reveal Agent Token_.
8-
- name: bootstrap-script
9-
env_var: BUILDKITE_BOOTSTRAP_SCRIPT_PATH
10-
default_value: "buildkite-agent bootstrap"
11-
required: false
12-
desc: |
13-
Command to invoke the bootstrap process.
7+
The agent registration token from your organization's _Agents_ page, used only to register new agents. To get your token, log in to Buildkite, navigate to _Agents_, then select _Reveal Agent Token_.
148
- name: build-path
159
env_var: BUILDKITE_BUILD_PATH
1610
default_value: "(depends on platform)"
1711
required: true
1812
desc: |
1913
Path to where the builds will run from.
14+
- name: allowed-repositories
15+
env_var: BUILDKITE_ALLOWED_REPOSITORIES
16+
default_value: ""
17+
required: false
18+
desc: |
19+
A comma-separated list of regular expressions representing repositories the agent is allowed to clone (for example, `^git@github.com:buildkite/.\*` or `^https://github.com/buildkite/.*`)
20+
- name: bootstrap-script
21+
env_var: BUILDKITE_BOOTSTRAP_SCRIPT_PATH
22+
default_value: "buildkite-agent bootstrap"
23+
required: false
24+
desc: |
25+
Command to invoke the bootstrap process.
2026
- name: cancel-grace-period
2127
env_var: BUILDKITE_CANCEL_GRACE_PERIOD
2228
default_value: "10"
@@ -204,7 +210,7 @@ attributes:
204210
desc: |
205211
Do not allow this agent to run arbitrary console commands.
206212
- name: no-git-submodules
207-
env_var: BUILDKITE_NO_GIT_SUBMODULES, BUILDKIT_DISABLE_GIT_SUBMODULES
213+
env_var: BUILDKITE_NO_GIT_SUBMODULES, BUILDKITE_DISABLE_GIT_SUBMODULES
208214
default_value: "false"
209215
required: false
210216
desc: |

data/graphql/schema.graphql

Lines changed: 70 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -721,12 +721,13 @@ type AuditActor {
721721
"""
722722
Kinds of actors which can perform audit events
723723
"""
724-
union AuditActorNode = User
724+
union AuditActorNode = Agent | User
725725

726726
"""
727727
All the possible types of actors in an Audit Event
728728
"""
729729
enum AuditActorType {
730+
AGENT
730731
USER
731732
}
732733

@@ -845,6 +846,11 @@ enum AuditEventType {
845846
SCM_SERVICE_CREATED
846847
SCM_SERVICE_DELETED
847848
SCM_SERVICE_UPDATED
849+
SECRET_CREATED
850+
SECRET_DELETED
851+
SECRET_QUERIED
852+
SECRET_READ
853+
SECRET_UPDATED
848854
SSO_PROVIDER_CREATED
849855
SSO_PROVIDER_DELETED
850856
SSO_PROVIDER_DISABLED
@@ -919,7 +925,7 @@ type AuditSubject {
919925
"""
920926
Kinds of subjects which can have audit events performed on them
921927
"""
922-
union AuditSubjectNode = APIAccessToken | AgentToken | AuthorizationBitbucket | AuthorizationGitHub | AuthorizationGitHubEnterprise | Cluster | ClusterPermission | ClusterQueue | ClusterQueueToken | ClusterToken | Email | NotificationServiceSlack | NotificationServiceWebhook | Organization | OrganizationBanner | OrganizationInvitation | OrganizationMember | Pipeline | PipelineSchedule | PipelineTemplate | SCMPipelineSettings | SCMRepositoryHost | SCMService | SSOProviderGitHubApp | SSOProviderGoogleGSuite | SSOProviderSAML | Subscription | Suite | TOTP | Team | TeamMember | TeamPipeline | TeamSuite | User
928+
union AuditSubjectNode = APIAccessToken | AgentToken | AuthorizationBitbucket | AuthorizationGitHub | AuthorizationGitHubEnterprise | Cluster | ClusterPermission | ClusterQueue | ClusterQueueToken | ClusterToken | Email | NotificationServiceSlack | NotificationServiceWebhook | Organization | OrganizationBanner | OrganizationInvitation | OrganizationMember | Pipeline | PipelineSchedule | PipelineTemplate | SCMPipelineSettings | SCMRepositoryHost | SCMService | SSOProviderGitHubApp | SSOProviderGoogleGSuite | SSOProviderSAML | Secret | Subscription | Suite | TOTP | Team | TeamMember | TeamPipeline | TeamSuite | User
923929

924930
"""
925931
All the possible types of subjects in an Audit Event
@@ -944,6 +950,7 @@ enum AuditSubjectType {
944950
SCM_PIPELINE_SETTINGS
945951
SCM_REPOSITORY_HOST
946952
SCM_SERVICE
953+
SECRET
947954
SSO_PROVIDER
948955
SUBSCRIPTION
949956
SUITE
@@ -3824,7 +3831,7 @@ type Mutation {
38243831
): AgentStopPayload
38253832

38263833
"""
3827-
Create a new unclustered agent token.
3834+
Create a new agent registration token.
38283835
"""
38293836
agentTokenCreate(
38303837
"""
@@ -3834,7 +3841,7 @@ type Mutation {
38343841
): AgentTokenCreatePayload
38353842

38363843
"""
3837-
Revoke an unclustered agent token.
3844+
Revoke an agent registration token.
38383845
"""
38393846
agentTokenRevoke(
38403847
"""
@@ -3895,7 +3902,7 @@ type Mutation {
38953902
): BuildRebuildPayload
38963903

38973904
"""
3898-
Create a new agent token for a cluster.
3905+
Create a new cluster agent token
38993906
"""
39003907
clusterAgentTokenCreate(
39013908
"""
@@ -3905,7 +3912,7 @@ type Mutation {
39053912
): ClusterAgentTokenCreatePayload
39063913

39073914
"""
3908-
Revokes an agent token for a cluster.
3915+
Revokes a cluster agent token
39093916
"""
39103917
clusterAgentTokenRevoke(
39113918
"""
@@ -3915,7 +3922,7 @@ type Mutation {
39153922
): ClusterAgentTokenRevokePayload
39163923

39173924
"""
3918-
Updates an agent token for a cluster.
3925+
Updates a cluster agent token
39193926
"""
39203927
clusterAgentTokenUpdate(
39213928
"""
@@ -7735,6 +7742,16 @@ type Query {
77357742
uuid: ID!
77367743
): PipelineTemplate
77377744

7745+
"""
7746+
Find a secret via its uuid. This does not contain the value of the secret or encrypted material.
7747+
"""
7748+
secret(
7749+
"""
7750+
The UUID for the secret i.e. `0bd5ea7c-89b3-4f40-8ca3-ffac805771eb`
7751+
"""
7752+
uuid: ID!
7753+
): Secret
7754+
77387755
"""
77397756
Find an sso provider either using it's slug, or UUID
77407757
"""
@@ -8919,6 +8936,52 @@ type SSOProviderUpdatePayload {
89198936
ssoProvider: SSOProvider!
89208937
}
89218938

8939+
"""
8940+
A secret hosted by Buildkite. This does not contain the secret value or encrypted material.
8941+
"""
8942+
type Secret implements Node {
8943+
"""
8944+
The cluster that the secret belongs to
8945+
"""
8946+
cluster: Cluster
8947+
8948+
"""
8949+
The time this secret was created
8950+
"""
8951+
createdAt: DateTime
8952+
8953+
"""
8954+
A description about what this secret is used for
8955+
"""
8956+
description: String
8957+
8958+
"""
8959+
The time this secret was destroyed
8960+
"""
8961+
destroyedAt: DateTime
8962+
id: ID!
8963+
8964+
"""
8965+
The key value used to name the secret
8966+
"""
8967+
key: String!
8968+
8969+
"""
8970+
The organization that the secret belongs to
8971+
"""
8972+
organization: Organization!
8973+
8974+
"""
8975+
The time this secret was updated
8976+
"""
8977+
updatedAt: DateTime
8978+
8979+
"""
8980+
The public UUID for the secret
8981+
"""
8982+
uuid: ID!
8983+
}
8984+
89228985
interface Step {
89238986
"""
89248987
The conditional evaluated for this step

data/nav_graphql.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959
path: apis/graphql/schemas/query/pipelineschedule
6060
- name: pipelineTemplate
6161
path: apis/graphql/schemas/query/pipelinetemplate
62+
- name: secret
63+
path: apis/graphql/schemas/query/secret
6264
- name: ssoProvider
6365
path: apis/graphql/schemas/query/ssoprovider
6466
- name: team
@@ -671,6 +673,8 @@
671673
path: apis/graphql/schemas/object/ssoprovidersamlsptype
672674
- name: SSOProviderUpdatePayload
673675
path: apis/graphql/schemas/object/ssoproviderupdatepayload
676+
- name: Secret
677+
path: apis/graphql/schemas/object/secret
674678
- name: StepCommand
675679
path: apis/graphql/schemas/object/stepcommand
676680
- name: StepInput

pages/agent/v3/cli_oidc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ For specific endpoints for OpenID or JWKS, use:
4545
commit:BUILD_COMMIT:step:STEP_KEY</code>. </p>
4646
<p>If the build has a tag, <code>REF</code> is <code>refs/tags/TAG</code>.</p>
4747
<p>Otherwise, <code>REF</code> is <code>refs/heads/BRANCH</code>.</p>
48-
<p><em>Example:</em><code>organization:acme-inc:pipeline:super-duper-app: ref:refs/heads/main:commit:9f3182061f1e2cca4702c368cbc039b7dc9d4485:step:build</code></p>
48+
<p><em>Example:</em><code>organization:acme-inc:pipeline:super-duper-app:ref:refs/heads/main:commit:9f3182061f1e2cca4702c368cbc039b7dc9d4485:step:build</code></p>
4949
</td>
5050
</tr>
5151
<tr>

pages/agent/v3/help/_annotate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Annotations are written in CommonMark-compliant Markdown, with &quot;GitHub
3030
Flavored Markdown&quot; extensions.
3131

3232
The annotation body can be supplied as a command line argument, or by piping
33-
content into the command. Custom Buildkite [emojis](/docs/pipelines/emojis) are supported. The maximum size of each annotation body is 1MiB.
33+
content into the command. The maximum size of each annotation body is 1MiB.
3434

3535
You can update an existing annotation&#39;s body by running the annotate command
3636
again and provide the same context as the one you want to update. Or if you
@@ -46,7 +46,6 @@ $ buildkite-agent annotate "All tests passed! :rocket:"
4646
$ cat annotation.md | buildkite-agent annotate --style "warning"
4747
$ buildkite-agent annotate --style "success" --context "junit"
4848
$ ./script/dynamic_annotation_generator | buildkite-agent annotate --style "success"
49-
$ buildkite-agent annotate ":one-does-not-simply: Green builds are coming." --style "success"
5049
```
5150

5251
### Options
@@ -57,6 +56,7 @@ $ buildkite-agent annotate ":one-does-not-simply: Green builds are coming." --st
5756
<tr id="context"><th><code>--context value</code> <a class="Docs__attribute__link" href="#context">#</a></th><td><p>The context of the annotation used to differentiate this annotation from others<br /><strong>Environment variable</strong>: <code>$BUILDKITE_ANNOTATION_CONTEXT</code></p></td></tr>
5857
<tr id="style"><th><code>--style value</code> <a class="Docs__attribute__link" href="#style">#</a></th><td><p>The style of the annotation (`success`, `info`, `warning` or `error`)<br /><strong>Environment variable</strong>: <code>$BUILDKITE_ANNOTATION_STYLE</code></p></td></tr>
5958
<tr id="append"><th><code>--append </code> <a class="Docs__attribute__link" href="#append">#</a></th><td><p>Append to the body of an existing annotation<br /><strong>Environment variable</strong>: <code>$BUILDKITE_ANNOTATION_APPEND</code></p></td></tr>
59+
<tr id="priority"><th><code>--priority value</code> <a class="Docs__attribute__link" href="#priority">#</a></th><td><p>Priority of the annotation (1 to 10). By default annotations have a priority of 3. Annotations with a priority of 10 will be shown first, and annotations with a priority of 1 will be shown last. (default: 0)<br /><strong>Environment variable</strong>: <code>$BUILDKITE_ANNOTATION_PRIORITY</code></p></td></tr>
6060
<tr id="job"><th><code>--job value</code> <a class="Docs__attribute__link" href="#job">#</a></th><td><p>Which job should the annotation come from<br /><strong>Environment variable</strong>: <code>$BUILDKITE_JOB_ID</code></p></td></tr>
6161
<tr id="agent-access-token"><th><code>--agent-access-token value</code> <a class="Docs__attribute__link" href="#agent-access-token">#</a></th><td><p>The access token used to identify the agent<br /><strong>Environment variable</strong>: <code>$BUILDKITE_AGENT_ACCESS_TOKEN</code></p></td></tr>
6262
<tr id="endpoint"><th><code>--endpoint value</code> <a class="Docs__attribute__link" href="#endpoint">#</a></th><td><p>The Agent API endpoint (default: "<code>https://agent.buildkite.com/v3</code>")<br /><strong>Environment variable</strong>: <code>$BUILDKITE_AGENT_ENDPOINT</code></p></td></tr>

pages/agent/v3/help/_bootstrap.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ $ buildkite-agent bootstrap --build-path builds
9393
<tr id="redacted-vars"><th><code>--redacted-vars value</code> <a class="Docs__attribute__link" href="#redacted-vars">#</a></th><td><p>Pattern of environment variable names containing sensitive values<br /><strong>Environment variable</strong>: <code>$BUILDKITE_REDACTED_VARS</code></p></td></tr>
9494
<tr id="tracing-backend"><th><code>--tracing-backend value</code> <a class="Docs__attribute__link" href="#tracing-backend">#</a></th><td><p>The name of the tracing backend to use.<br /><strong>Environment variable</strong>: <code>$BUILDKITE_TRACING_BACKEND</code></p></td></tr>
9595
<tr id="tracing-service-name"><th><code>--tracing-service-name value</code> <a class="Docs__attribute__link" href="#tracing-service-name">#</a></th><td><p>Service name to use when reporting traces. (default: "buildkite-agent")<br /><strong>Environment variable</strong>: <code>$BUILDKITE_TRACING_SERVICE_NAME</code></p></td></tr>
96+
<tr id="no-job-api"><th><code>--no-job-api </code> <a class="Docs__attribute__link" href="#no-job-api">#</a></th><td><p>Disables the Job API, which gives commands in jobs some abilities to introspect and mutate the state of the job.<br /><strong>Environment variable</strong>: <code>$BUILDKITE_AGENT_NO_JOB_API</code></p></td></tr>
9697
<tr id="debug"><th><code>--debug </code> <a class="Docs__attribute__link" href="#debug">#</a></th><td><p>Enable debug mode. Synonym for `--log-level debug`. Takes precedence over `--log-level`<br /><strong>Environment variable</strong>: <code>$BUILDKITE_AGENT_DEBUG</code></p></td></tr>
9798
<tr id="log-level"><th><code>--log-level value</code> <a class="Docs__attribute__link" href="#log-level">#</a></th><td><p>Set the log level for the agent, making logging more or less verbose. Defaults to notice. Allowed values are: debug, info, error, warn, fatal (default: "notice")<br /><strong>Environment variable</strong>: <code>$BUILDKITE_AGENT_LOG_LEVEL</code></p></td></tr>
9899
<tr id="experiment"><th><code>--experiment value</code> <a class="Docs__attribute__link" href="#experiment">#</a></th><td><p>Enable experimental features within the buildkite-agent<br /><strong>Environment variable</strong>: <code>$BUILDKITE_AGENT_EXPERIMENT</code></p></td></tr>

0 commit comments

Comments
 (0)