Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ test_details = ["test", "--target", "aarch64-apple-darwin"]
target = "wasm32-wasip1"

[target.'cfg(all(target_arch = "wasm32"))']
runner = "viceroy run -C fastly.toml -- "
runner = "viceroy run -C ../../fastly.toml -- "
68 changes: 68 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@

# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added
- for new features.

### Changed
- for changes in existing functionality.

### Deprecated for soon-to-be removed features.
- Removed for now removed features.

### Fixed
- for any bug fixes.

### Security
- in case of vulnerabilities.

## [1.0.5] - 2025-05-19

### Changed

- Refactor into crates to allow to separate Fastly implementation
- Remove references to POTSI
- Rename `potsi.toml` to `trusted-server.toml`

### Added

- Implemented GDPR consent for creating and passing synth headers


## [1.0.4] - 2025-04-29

### Added

- Implemented GDPR consent for creating and passing synth headers

## [1.0.3] - 2025-04-23

### Changes

- Upgraded to Fastly CLI v11.2.0

## [1.0.2] - 2025-03-28

### Added
- Documented project gogernance in [ProjectGovernance.md]
- Document FAQ for POC [FAQ_POC.md]

## [1.0.1] - 2025-03-27

### Changed

- Allow to templatize synthetic cookies

## [1.0.0] - 2025-03-26

### Added

- Initial implementation of Trusted Server

117 changes: 87 additions & 30 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 6 additions & 29 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,29 +1,6 @@
[package]
name = "potsi"
version = "0.1.0"
authors = []
edition = "2021"
# Remove this line if you want to be able to publish this crate as open source on crates.io.
# Otherwise, `publish = false` prevents an accidental `cargo publish` from revealing private source.
publish = false
license = "Apache-2.0"

[profile.release]
debug = 1

[dependencies]
fastly = "0.11.2"
hmac = "0.12.1"
sha2 = "0.10.6"
hex = "0.4.3"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.91"
cookie = "0.18.1"
log = "0.4.20"
log-fastly = "0.10.0"
futures = "0.3"
tokio = { version = "1.0", features = ["sync", "macros", "io-util", "rt", "time"] }
url = "2.4.1"
config = "0.15.11"
handlebars = "6.3.2"
chrono = "0.4"
[workspace]
resolver = "2"
members = [
"crates/common",
"crates/fastly",
]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ git clone [email protected]:IABTechLab/trusted-server.git
:information_source: Note that you’ll have to edit the following files for your setup:

- fastly.toml (service ID, author, description)
- potsi.toml (KV store ID names)
- trusted-server.toml (KV store ID names)

### Build

Expand Down
29 changes: 29 additions & 0 deletions crates/common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[package]
name = "trusted-server-common"
version = "0.1.0"
authors = []
edition = "2021"
# Remove this line if you want to be able to publish this crate as open source on crates.io.
# Otherwise, `publish = false` prevents an accidental `cargo publish` from revealing private source.
publish = false
license = "Apache-2.0"

[profile.release]
debug = 1

[dependencies]
chrono = "0.4"
config = "0.15.11"
cookie = "0.18.1"
fastly = "0.11.2"
futures = "0.3"
handlebars = "6.3.2"
hex = "0.4.3"
hmac = "0.12.1"
log = "0.4.20"
log-fastly = "0.10.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.91"
sha2 = "0.10.6"
tokio = { version = "1.0", features = ["sync", "macros", "io-util", "rt", "time"] }
url = "2.4.1"
2 changes: 1 addition & 1 deletion src/constants.rs → crates/common/src/constants.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pub const SYNTHETIC_HEADER_FRESH: &str = "X-Synthetic-Fresh";
pub const SYNTHETIC_HEADER_POTSI: &str = "X-Synthetic-Potsi";
pub const SYNTHETIC_HEADER_TRUSTED_SERVER: &str = "X-Synthetic-Trusted-Server";
pub const SYNTHETIC_HEADER_PUB_USER_ID: &str = "X-Pub-User-ID";
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions crates/common/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
pub mod constants;
pub mod cookies;
pub mod gdpr;
pub mod models;
pub mod prebid;
pub mod privacy;
pub mod settings;
pub mod synthetic;
pub mod templates;
pub mod why;
File renamed without changes.
Loading
Loading