Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions proto/opamp/v1/opamp.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1045,13 +1045,18 @@ message AgentConfigMap {
}

message AgentConfigFile {
// Config file or section body. The content, format and encoding depends on the Agent
// type. The content_type field may optionally describe the MIME type of the body.
// Config file, section, or supplementary content body. The content, format and
// encoding depends on the Agent type. The content_type field may optionally
// describe the MIME type of the body.
bytes body = 1;

// Optional MIME Content-Type that describes what's in the body field, for
// example "text/yaml".
string content_type = 2;

// Optional role of the content in the body field. The values and their semantics
// are Agent type-specific.
string role = 3;
}

/////////////////////////////////////////////////////////////////////////////////////
Expand Down
6 changes: 6 additions & 0 deletions specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -2626,6 +2626,7 @@ following structure:
message AgentConfigFile {
bytes body = 1;
string content_type = 2;
string role = 3;
}
```

Expand All @@ -2639,6 +2640,11 @@ reported in the Effective Configuration in the Agent's status report may be used
for example by the Server to visualize the reported configuration nicely in a
UI.

role is an optional field that describes the role of the content. The values and
their semantics are Agent type-specific. For example, an Agent type may use this
field to distinguish top-level configuration from supplementary content such as
certificates or other artifacts referenced by configuration.

#### Security Considerations

Remote Configuration is a potentially dangerous functionality that may be
Expand Down