bella_baxter 0.1.1-preview.80 copy "bella_baxter: ^0.1.1-preview.80" to clipboard
bella_baxter: ^0.1.1-preview.80 copied to clipboard

Official Dart SDK for Bella Baxter secret management. Pull secrets from Vault, AWS, Azure, and GCP via a single unified API. Supports HMAC auth, ZKE, and real-time polling.

example/bella_baxter_example.dart

/// Example: fetch secrets from Bella Baxter using an API key.
///
/// Prerequisites:
/// 1. Create an API key for your environment at https://app.bella-baxter.io
/// 2. Set the `BELLA_API_KEY` environment variable
///
/// Run:
///   dart run example/bella_baxter_example.dart
library;

import 'dart:io';

import 'package:bella_baxter/bella_baxter.dart';

void main() async {
  final apiKey = Platform.environment['BELLA_API_KEY'] ?? '';
  if (apiKey.isEmpty) {
    stderr.writeln('Set BELLA_API_KEY environment variable to run this example.');
    exit(1);
  }

  final client = BellaBaxter.withApiKey(apiKey);

  // List secrets for the environment scoped to this API key
  final secrets = await client.secrets.listSecrets();
  for (final entry in secrets.entries) {
    print('${entry.key}=***');
  }

  print('Fetched ${secrets.length} secret(s).');
}
0
likes
0
points
1.49k
downloads

Publisher

verified publisherbella-baxter.io

Weekly Downloads

Official Dart SDK for Bella Baxter secret management. Pull secrets from Vault, AWS, Azure, and GCP via a single unified API. Supports HMAC auth, ZKE, and real-time polling.

Repository (GitHub)
View/report issues

Topics

#secrets #vault #configuration #security #dart

License

unknown (license)

Dependencies

built_collection, built_value, crypto, dio, one_of, one_of_serializer, pointycastle

More

Packages that depend on bella_baxter