Fix cross scan for open source
See go/cross for detail
Test log:
```sh
~/workspace/streaming-telemetry-server$ /google/bin/releases/opensource/thirdparty/cross/cross .
Checking out all branches...
Running 1 branch(es) through Cross...
Cross results for .
Normalized Repo: /usr/local/google/home/yongbingchen/workspace/streaming-telemetry-server
Branch:
Status: ✅ All checks passed
🗄️ File Count
- Source files: 41
- Other files: 11
- Total files: 52
```
Google-Bug-Id: 366492368
Signed-off-by: Yongbing Chen <yongbingchen@google.com>
Change-Id: Ia5f868144724084185185cb494679d1ade246216
diff --git a/.markdownlint.yaml b/.markdownlint.yaml
index 581a705..13acb7b 100644
--- a/.markdownlint.yaml
+++ b/.markdownlint.yaml
@@ -1,3 +1,17 @@
+# Copyright 2025 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
default: true
MD033:
allowed_elements:
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..b16bd94
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,33 @@
+# How to contribute
+
+We'd love to accept your patches and contributions to this project.
+
+## Before you begin
+
+### Sign our Contributor License Agreement
+
+Contributions to this project must be accompanied by a
+[Contributor License Agreement](https://cla.developers.google.com/about) (CLA).
+You (or your employer) retain the copyright to your contribution; this simply
+gives us permission to use and redistribute your contributions as part of the
+project.
+
+If you or your current employer have already signed the Google CLA (even if it
+was for a different project), you probably don't need to do it again.
+
+Visit <https://cla.developers.google.com/> to see your current agreements or to
+sign a new one.
+
+### Review our community guidelines
+
+This project follows
+[Google's Open Source Community Guidelines](https://opensource.google/conduct/).
+
+## Contribution process
+
+### Code reviews
+
+All submissions, including submissions by project members, require review. We
+use GitHub pull requests for this purpose. Consult
+[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
+information on using pull requests.
diff --git a/LICENSE.Apache b/LICENSE
similarity index 100%
rename from LICENSE.Apache
rename to LICENSE
diff --git a/README.md b/README.md
index 7982149..89f4c8d 100644
--- a/README.md
+++ b/README.md
@@ -200,9 +200,7 @@
```
Need install Rust [cross](https://kerkour.com/rust-cross-compilation) build if
-not done yet, it requires
-[docker](https://g3doc.corp.google.com/cloud/containers/g3doc/glinux-docker/install.md?cl=head)
-be installed first.
+not done yet, it requires docker be installed first.
```sh
~$ cargo install -f cross
diff --git a/streaming_telemetry/proto/build.rs b/streaming_telemetry/proto/build.rs
index dc6f9cb..33239b9 100644
--- a/streaming_telemetry/proto/build.rs
+++ b/streaming_telemetry/proto/build.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
.compile(
diff --git a/streaming_telemetry/src/app_state.rs b/streaming_telemetry/src/app_state.rs
index ea2913a..f627066 100644
--- a/streaming_telemetry/src/app_state.rs
+++ b/streaming_telemetry/src/app_state.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
//! This module defines the central application state structure used throughout the application.
use crate::handlers::chassis::ChassisState;
diff --git a/streaming_telemetry/src/composite_query.rs b/streaming_telemetry/src/composite_query.rs
index e4f322e..c3b225b 100644
--- a/streaming_telemetry/src/composite_query.rs
+++ b/streaming_telemetry/src/composite_query.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
//! This module defines structures for handling composite requests and responses in an API system.
//! It includes types for parsing incoming composite requests, generating responses, and
//! managing individual sub-requests and sub-responses within a composite operation.
diff --git a/streaming_telemetry/src/dbus_client/Availability.rs b/streaming_telemetry/src/dbus_client/Availability.rs
index 3184731..be022ad 100644
--- a/streaming_telemetry/src/dbus_client/Availability.rs
+++ b/streaming_telemetry/src/dbus_client/Availability.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
//! # DBus interface proxy for: `xyz.openbmc_project.State.Decorator.Availability`
//!
//! This code was generated by `zbus-xmlgen` `4.0.0` from DBus introspection data.
diff --git a/streaming_telemetry/src/dbus_client/Critical.rs b/streaming_telemetry/src/dbus_client/Critical.rs
index 08aa548..e18ef61 100644
--- a/streaming_telemetry/src/dbus_client/Critical.rs
+++ b/streaming_telemetry/src/dbus_client/Critical.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
//! # DBus interface proxy for: `xyz.openbmc_project.Sensor.Threshold.Critical`
//!
//! This code was generated by `zbus-xmlgen` `4.0.0` from DBus introspection data.
diff --git a/streaming_telemetry/src/dbus_client/Definitions.rs b/streaming_telemetry/src/dbus_client/Definitions.rs
index bce5503..a247a89 100644
--- a/streaming_telemetry/src/dbus_client/Definitions.rs
+++ b/streaming_telemetry/src/dbus_client/Definitions.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
//! # DBus interface proxy for: `xyz.openbmc_project.Association.Definitions`
//!
//! This code was generated by `zbus-xmlgen` `4.0.0` from DBus introspection data.
diff --git a/streaming_telemetry/src/dbus_client/ObjectMapper.rs b/streaming_telemetry/src/dbus_client/ObjectMapper.rs
index dc847b5..094c7c0 100644
--- a/streaming_telemetry/src/dbus_client/ObjectMapper.rs
+++ b/streaming_telemetry/src/dbus_client/ObjectMapper.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
//! # DBus interface proxy for: `xyz.openbmc_project.ObjectMapper`
//!
//! This code was generated by `zbus-xmlgen` `4.0.0` from DBus introspection data.
diff --git a/streaming_telemetry/src/dbus_client/OperationalStatus.rs b/streaming_telemetry/src/dbus_client/OperationalStatus.rs
index 0ee82c7..48d1e7b 100644
--- a/streaming_telemetry/src/dbus_client/OperationalStatus.rs
+++ b/streaming_telemetry/src/dbus_client/OperationalStatus.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
//! # DBus interface proxy for: `xyz.openbmc_project.State.Decorator.OperationalStatus`
//!
//! This code was generated by `zbus-xmlgen` `4.0.0` from DBus introspection data.
diff --git a/streaming_telemetry/src/dbus_client/Value.rs b/streaming_telemetry/src/dbus_client/Value.rs
index 3323f04..3e5f6d2 100644
--- a/streaming_telemetry/src/dbus_client/Value.rs
+++ b/streaming_telemetry/src/dbus_client/Value.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
//! # DBus interface proxy for: `xyz.openbmc_project.Sensor.Value`
//!
//! This code was generated by `zbus-xmlgen` `4.0.0` from DBus introspection data.
diff --git a/streaming_telemetry/src/dbus_client/ValueMutability.rs b/streaming_telemetry/src/dbus_client/ValueMutability.rs
index e76653c..c7ea590 100644
--- a/streaming_telemetry/src/dbus_client/ValueMutability.rs
+++ b/streaming_telemetry/src/dbus_client/ValueMutability.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
//! # DBus interface proxy for: `xyz.openbmc_project.Sensor.ValueMutability`
//!
//! This code was generated by `zbus-xmlgen` `4.0.0` from DBus introspection data.
diff --git a/streaming_telemetry/src/dbus_client/dbus_client.rs b/streaming_telemetry/src/dbus_client/dbus_client.rs
index 92968c5..219f035 100644
--- a/streaming_telemetry/src/dbus_client/dbus_client.rs
+++ b/streaming_telemetry/src/dbus_client/dbus_client.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
//! This module provides functionality for interacting with sensors via D-Bus in an OpenBMC environment.
//! It includes functions for retrieving sensor information, mapping Redfish sensors to D-Bus paths,
//! and polling sensor values.
diff --git a/streaming_telemetry/src/dbus_client/mod.rs b/streaming_telemetry/src/dbus_client/mod.rs
index 85f7ff9..30c3f9c 100644
--- a/streaming_telemetry/src/dbus_client/mod.rs
+++ b/streaming_telemetry/src/dbus_client/mod.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
#![allow(clippy::module_inception)]
#![allow(non_snake_case)]
pub mod Availability;
diff --git a/streaming_telemetry/src/grpc/mod.rs b/streaming_telemetry/src/grpc/mod.rs
index facc22f..c7a5a09 100644
--- a/streaming_telemetry/src/grpc/mod.rs
+++ b/streaming_telemetry/src/grpc/mod.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
pub mod server_config;
pub mod telemetry_server;
pub mod third_party_voyager;
diff --git a/streaming_telemetry/src/grpc/server_config/mod.rs b/streaming_telemetry/src/grpc/server_config/mod.rs
index 415770a..ece89bf 100644
--- a/streaming_telemetry/src/grpc/server_config/mod.rs
+++ b/streaming_telemetry/src/grpc/server_config/mod.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
// @generated
pub mod voyager_server_config;
diff --git a/streaming_telemetry/src/grpc/server_config/voyager_server_config.rs b/streaming_telemetry/src/grpc/server_config/voyager_server_config.rs
index 5eb0f41..2332a73 100644
--- a/streaming_telemetry/src/grpc/server_config/voyager_server_config.rs
+++ b/streaming_telemetry/src/grpc/server_config/voyager_server_config.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
#![allow(clippy::all)]
// This file is generated by rust-protobuf 3.5.1. Do not edit
// .proto file is parsed by protoc --rust_out=...
diff --git a/streaming_telemetry/src/grpc/server_config/voyager_telemetry.rs b/streaming_telemetry/src/grpc/server_config/voyager_telemetry.rs
index 381cde5..55e2152 100644
--- a/streaming_telemetry/src/grpc/server_config/voyager_telemetry.rs
+++ b/streaming_telemetry/src/grpc/server_config/voyager_telemetry.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
#![allow(clippy::all)]
// This file is generated by rust-protobuf 3.5.1. Do not edit
// .proto file is parsed by protoc --rust_out=...
diff --git a/streaming_telemetry/src/grpc/telemetry_server.rs b/streaming_telemetry/src/grpc/telemetry_server.rs
index 75574e2..5ee8c08 100644
--- a/streaming_telemetry/src/grpc/telemetry_server.rs
+++ b/streaming_telemetry/src/grpc/telemetry_server.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
//! BMC Telemetry Service implementation voyager telemetry gRPC.
//!
//! This module provides a gRPC-based telemetry service for Baseboard Management Controllers (BMCs).
diff --git a/streaming_telemetry/src/grpc/third_party_voyager.rs b/streaming_telemetry/src/grpc/third_party_voyager.rs
index 41b044f..07f6cd1 100644
--- a/streaming_telemetry/src/grpc/third_party_voyager.rs
+++ b/streaming_telemetry/src/grpc/third_party_voyager.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
#![allow(clippy::all)]
// This file is @generated by prost-build.
///
diff --git a/streaming_telemetry/src/handlers/chassis.rs b/streaming_telemetry/src/handlers/chassis.rs
index 0557a48..17f9bf8 100644
--- a/streaming_telemetry/src/handlers/chassis.rs
+++ b/streaming_telemetry/src/handlers/chassis.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
//! This module handles chassis-related operations, including chassis collection, individual chassis,
//! sensors collection, and individual sensors. It also includes functionality for event subscription
//! and processing.
diff --git a/streaming_telemetry/src/handlers/mod.rs b/streaming_telemetry/src/handlers/mod.rs
index bde0584..dff0817 100644
--- a/streaming_telemetry/src/handlers/mod.rs
+++ b/streaming_telemetry/src/handlers/mod.rs
@@ -1,2 +1,16 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
pub mod chassis;
pub mod xpath;
diff --git a/streaming_telemetry/src/handlers/xpath.rs b/streaming_telemetry/src/handlers/xpath.rs
index f458165..c9bfc1e 100644
--- a/streaming_telemetry/src/handlers/xpath.rs
+++ b/streaming_telemetry/src/handlers/xpath.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
//! This module contains functions and structures related to xpath handling
use crate::app_state::AppState;
diff --git a/streaming_telemetry/src/lib.rs b/streaming_telemetry/src/lib.rs
index 4f40c59..78c0c9e 100644
--- a/streaming_telemetry/src/lib.rs
+++ b/streaming_telemetry/src/lib.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
pub mod app_state;
pub mod composite_query;
pub mod dbus_client;
diff --git a/streaming_telemetry/src/main.rs b/streaming_telemetry/src/main.rs
index f9f09fc..8b1dc2d 100644
--- a/streaming_telemetry/src/main.rs
+++ b/streaming_telemetry/src/main.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
mod app_state;
mod composite_query;
mod dbus_client;
diff --git a/streaming_telemetry/src/mtls/mod.rs b/streaming_telemetry/src/mtls/mod.rs
index 9ef166d..1b450e3 100644
--- a/streaming_telemetry/src/mtls/mod.rs
+++ b/streaming_telemetry/src/mtls/mod.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
#![allow(clippy::module_inception)]
#[cfg(feature = "mtls")]
pub mod mtls;
diff --git a/streaming_telemetry/src/mtls/mtls.rs b/streaming_telemetry/src/mtls/mtls.rs
index 117e9ef..08abea4 100644
--- a/streaming_telemetry/src/mtls/mtls.rs
+++ b/streaming_telemetry/src/mtls/mtls.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
//! Secure gRPC server implementation with custom TLS configuration and client certificate verification.
//!
//! This module provides functionality to run a secure gRPC server with mutual TLS authentication,
diff --git a/streaming_telemetry/src/telemetry_client.rs b/streaming_telemetry/src/telemetry_client.rs
index 12a585a..4dca33c 100644
--- a/streaming_telemetry/src/telemetry_client.rs
+++ b/streaming_telemetry/src/telemetry_client.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
use anyhow::{anyhow, Result};
use chrono::{DateTime, NaiveDateTime, Utc};
use clap::{arg, Command};
diff --git a/streaming_telemetry/src/telemetry_source_manager/dbus_sensors/ObjectMapper.rs b/streaming_telemetry/src/telemetry_source_manager/dbus_sensors/ObjectMapper.rs
index dc847b5..094c7c0 100644
--- a/streaming_telemetry/src/telemetry_source_manager/dbus_sensors/ObjectMapper.rs
+++ b/streaming_telemetry/src/telemetry_source_manager/dbus_sensors/ObjectMapper.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
//! # DBus interface proxy for: `xyz.openbmc_project.ObjectMapper`
//!
//! This code was generated by `zbus-xmlgen` `4.0.0` from DBus introspection data.
diff --git a/streaming_telemetry/src/telemetry_source_manager/dbus_sensors/Value.rs b/streaming_telemetry/src/telemetry_source_manager/dbus_sensors/Value.rs
index 3323f04..3e5f6d2 100644
--- a/streaming_telemetry/src/telemetry_source_manager/dbus_sensors/Value.rs
+++ b/streaming_telemetry/src/telemetry_source_manager/dbus_sensors/Value.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
//! # DBus interface proxy for: `xyz.openbmc_project.Sensor.Value`
//!
//! This code was generated by `zbus-xmlgen` `4.0.0` from DBus introspection data.
diff --git a/streaming_telemetry/src/telemetry_source_manager/dbus_sensors/dbus_sensors.rs b/streaming_telemetry/src/telemetry_source_manager/dbus_sensors/dbus_sensors.rs
index cae9d91..48fe424 100644
--- a/streaming_telemetry/src/telemetry_source_manager/dbus_sensors/dbus_sensors.rs
+++ b/streaming_telemetry/src/telemetry_source_manager/dbus_sensors/dbus_sensors.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
//! This module provides functionality for creating and managing D-Bus sensors for the telemetry_source_manager.
use crate::telemetry_source_manager::dbus_sensors::ObjectMapper::ObjectMapperProxy;
diff --git a/streaming_telemetry/src/telemetry_source_manager/dbus_sensors/mod.rs b/streaming_telemetry/src/telemetry_source_manager/dbus_sensors/mod.rs
index 866c4a1..1c0adcd 100644
--- a/streaming_telemetry/src/telemetry_source_manager/dbus_sensors/mod.rs
+++ b/streaming_telemetry/src/telemetry_source_manager/dbus_sensors/mod.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
#![allow(non_snake_case)]
pub mod ObjectMapper;
pub mod Value;
diff --git a/streaming_telemetry/src/telemetry_source_manager/i2c_sensors.rs b/streaming_telemetry/src/telemetry_source_manager/i2c_sensors.rs
index 80b9c50..65a7370 100644
--- a/streaming_telemetry/src/telemetry_source_manager/i2c_sensors.rs
+++ b/streaming_telemetry/src/telemetry_source_manager/i2c_sensors.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
//! This module provides functionality for creating and managing I2C sensors for the telemetry_source_manager.
#![allow(clippy::type_complexity)]
diff --git a/streaming_telemetry/src/telemetry_source_manager/mod.rs b/streaming_telemetry/src/telemetry_source_manager/mod.rs
index f44501e..3048db5 100644
--- a/streaming_telemetry/src/telemetry_source_manager/mod.rs
+++ b/streaming_telemetry/src/telemetry_source_manager/mod.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
#![allow(clippy::module_inception)]
pub mod dbus_sensors;
pub mod i2c_sensors;
diff --git a/streaming_telemetry/src/telemetry_source_manager/sensor_configs.rs b/streaming_telemetry/src/telemetry_source_manager/sensor_configs.rs
index 83268a1..0126bb5 100644
--- a/streaming_telemetry/src/telemetry_source_manager/sensor_configs.rs
+++ b/streaming_telemetry/src/telemetry_source_manager/sensor_configs.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
//! This module provides functionality for extracting sensor configurations from OpenBMC Entity
//! Manager's configuration files
diff --git a/streaming_telemetry/src/telemetry_source_manager/telemetry_source_manager.rs b/streaming_telemetry/src/telemetry_source_manager/telemetry_source_manager.rs
index 7a54330..4d21998 100644
--- a/streaming_telemetry/src/telemetry_source_manager/telemetry_source_manager.rs
+++ b/streaming_telemetry/src/telemetry_source_manager/telemetry_source_manager.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
#![doc = include_str!("README.md")]
use anyhow::Result;
diff --git a/streaming_telemetry/src/telemetry_source_manager/telemetry_source_manager_api.rs b/streaming_telemetry/src/telemetry_source_manager/telemetry_source_manager_api.rs
index 66571fa..f5c844f 100644
--- a/streaming_telemetry/src/telemetry_source_manager/telemetry_source_manager_api.rs
+++ b/streaming_telemetry/src/telemetry_source_manager/telemetry_source_manager_api.rs
@@ -1,3 +1,17 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
//! This module provides functionality for creating and managing a sensor database,
//! handling sensor events, and subscribing to sensor updates in an OpenBMC environment.