Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 1.61 KB

CHANGELOG.md

File metadata and controls

62 lines (44 loc) · 1.61 KB

Changelog

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

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[v0.1.2] - 2023-01-28

Fixed

  • setSecret logic: now, it includes deserialization as cfg.SecretObj prior to propagation to the corresponding method of the ServiceClient

[v0.1.1] - 2023-01-25

Changed

  • Changed the module's façade API:
    • now: The main function NewHandler(cfg Config) is used to initialise the Lambda handler used as the input to lambda.Start function to initialize AWS Lambda
    • was: The main function Start(cfg Config) wraps the function lambda.Start to initialize AWS Lambda

An example:

package main

import (
	"log"
	"os"

	"github.com/aws/aws-lambda-go/lambda"

	secretRotation "github.com/kislerdm/aws-lambda-secret-rotation"
)

func main() {
	/* ... */
	handler, err := secretRotation.NewHandler(
		secretRotation.Config{
			/* ... */
			Debug: secretRotation.StrToBool(os.Getenv("DEBUG")),
		},
	)
	if err != nil {
		log.Fatalf("unable to init lambda handler to rotate secret, %v", err)
	}

	lambda.Start(handler)
}

[v0.1.0] - 2023-01-22

Added

  • Lambda handler
  • Interfaces for clients to communicate with the AWS Secretsmanager and the service delegated secrets storage