Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit385a426

Browse files
kylecarbscoadler
andauthored
fix: remove audit-logging flag from the server (#6991)
Co-authored-by: Colin Adler <colin1adler@gmail.com>
1 parent29e9b9e commit385a426

File tree

9 files changed

+5
-43
lines changed

9 files changed

+5
-43
lines changed

‎cli/testdata/coder_server_--help.golden‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,6 @@ telemetrywhen required by your organization's security policy.
353353
Enterprise Options
354354
These options are only available in the Enterprise Edition.
355355

356-
--audit-logging bool, $CODER_AUDIT_LOGGING (default: true)
357-
Specifies whether audit logging is enabled.
358-
359356
--browser-only bool, $CODER_BROWSER_ONLY
360357
Whether Coder only allows connections to workspaces via the browser.
361358

‎coderd/apidoc/docs.go‎

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/apidoc/swagger.json‎

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎codersdk/deployment.go‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ type DeploymentValues struct {
142142
MetricsCacheRefreshInterval clibase.Duration`json:"metrics_cache_refresh_interval,omitempty" typescript:",notnull"`
143143
AgentStatRefreshInterval clibase.Duration`json:"agent_stat_refresh_interval,omitempty" typescript:",notnull"`
144144
AgentFallbackTroubleshootingURL clibase.URL`json:"agent_fallback_troubleshooting_url,omitempty" typescript:",notnull"`
145-
AuditLogging clibase.Bool`json:"audit_logging,omitempty" typescript:",notnull"`
146145
BrowserOnly clibase.Bool`json:"browser_only,omitempty" typescript:",notnull"`
147146
SCIMAPIKey clibase.String`json:"scim_api_key,omitempty" typescript:",notnull"`
148147
ProvisionerProvisionerConfig`json:"provisioner,omitempty" typescript:",notnull"`
@@ -1262,16 +1261,6 @@ when required by your organization's security policy.`,
12621261
Value:&c.AgentFallbackTroubleshootingURL,
12631262
YAML:"agentFallbackTroubleshootingURL",
12641263
},
1265-
{
1266-
Name:"Audit Logging",
1267-
Description:"Specifies whether audit logging is enabled.",
1268-
Flag:"audit-logging",
1269-
Env:"CODER_AUDIT_LOGGING",
1270-
Default:"true",
1271-
Annotations: clibase.Annotations{}.Mark(flagEnterpriseKey,"true"),
1272-
Value:&c.AuditLogging,
1273-
YAML:"auditLogging",
1274-
},
12751264
{
12761265
Name:"Browser Only",
12771266
Description:"Whether Coder only allows connections to workspaces via the browser.",

‎docs/api/general.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ curl -X GET http://coder-server:8080/api/v2/deployment/config \
150150
"user": {}
151151
},
152152
"agent_stat_refresh_interval":0,
153-
"audit_logging":true,
154153
"autobuild_poll_interval":0,
155154
"browser_only":true,
156155
"cache_directory":"string",

‎docs/api/schemas.md‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1754,7 +1754,6 @@ CreateParameterRequest is a structure used to create a new parameter value for a
17541754
"user": {}
17551755
},
17561756
"agent_stat_refresh_interval":0,
1757-
"audit_logging":true,
17581757
"autobuild_poll_interval":0,
17591758
"browser_only":true,
17601759
"cache_directory":"string",
@@ -2102,7 +2101,6 @@ CreateParameterRequest is a structure used to create a new parameter value for a
21022101
"user": {}
21032102
},
21042103
"agent_stat_refresh_interval":0,
2105-
"audit_logging":true,
21062104
"autobuild_poll_interval":0,
21072105
"browser_only":true,
21082106
"cache_directory":"string",
@@ -2321,7 +2319,6 @@ CreateParameterRequest is a structure used to create a new parameter value for a
23212319
|`address`|[clibase.HostPort](#clibasehostport)| false|| Address Use HTTPAddress or TLS.Address instead.|
23222320
|`agent_fallback_troubleshooting_url`|[clibase.URL](#clibaseurl)| false|||
23232321
|`agent_stat_refresh_interval`| integer| false|||
2324-
|`audit_logging`| boolean| false|||
23252322
|`autobuild_poll_interval`| integer| false|||
23262323
|`browser_only`| boolean| false|||
23272324
|`cache_directory`| string| false|||

‎docs/cli/server.md‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,6 @@ coder server [flags]
2929

3030
The URL that users will use to access the Coder deployment.
3131

32-
###--audit-logging
33-
34-
|||
35-
| -----------| ---------------------------------|
36-
| Type| <code>bool</code>|
37-
| Environment| <code>$CODER_AUDIT_LOGGING</code>|
38-
| Default| <code>true</code>|
39-
40-
Specifies whether audit logging is enabled.
41-
4232
###--browser-only
4333

4434
|||

‎enterprise/cli/server.go‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,15 @@ func (r *RootCmd) server() *clibase.Cmd {
4949
}
5050
}
5151
options.DERPServer.SetMeshKey(meshKey)
52-
53-
ifoptions.DeploymentValues.AuditLogging.Value() {
54-
options.Auditor=audit.NewAuditor(audit.DefaultFilter,
55-
backends.NewPostgres(options.Database,true),
56-
backends.NewSlog(options.Logger),
57-
)
58-
}
52+
options.Auditor=audit.NewAuditor(audit.DefaultFilter,
53+
backends.NewPostgres(options.Database,true),
54+
backends.NewSlog(options.Logger),
55+
)
5956

6057
options.TrialGenerator=trialer.New(options.Database,"https://v2-licensor.coder.com/trial",coderd.Keys)
6158

6259
o:=&coderd.Options{
63-
AuditLogging:options.DeploymentValues.AuditLogging.Value(),
60+
AuditLogging:true,
6461
BrowserOnly:options.DeploymentValues.BrowserOnly.Value(),
6562
SCIMAPIKey: []byte(options.DeploymentValues.SCIMAPIKey.Value()),
6663
RBAC:true,

‎site/src/api/typesGenerated.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,6 @@ export interface DeploymentValues {
349349
readonlymetrics_cache_refresh_interval?:number
350350
readonlyagent_stat_refresh_interval?:number
351351
readonlyagent_fallback_troubleshooting_url?:string
352-
readonlyaudit_logging?:boolean
353352
readonlybrowser_only?:boolean
354353
readonlyscim_api_key?:string
355354
readonlyprovisioner?:ProvisionerConfig

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp