Skip to content

Instantly share code, notes, and snippets.

View bmamatkadyr's full-sized avatar
🗿
Fixing Bugs

Beksultan bmamatkadyr

🗿
Fixing Bugs
View GitHub Profile
@Mishco
Mishco / content.md
Last active November 12, 2024 20:01
Setup HashiCorp Vault on docker

Setup HashiCorp Vault on docker

Vault secures, stores, and tightly controls access to tokens, passwords, certificates, API keys, and other secrets in modern computing. Vault is primarily used in production environments to manage secrets. Vault is a complex system that has many different pieces. There is a clear separation of components that are inside or outside of the security barrier. Only the storage backend and the HTTP API are outside, all other components are inside the barrier.

Vault_architecture

Figure 1: Architecture of Vault and Spring App (Click to enlarge)

The storage backend is untrusted and is used to durably store encrypted data. When the Vault server is started, it must be provided with a storage backend so that data is available across restarts. The HTTP API similarly must be started by the Vault server on start so that clients can interact with it.

@pathakashish
pathakashish / circleci.yml
Last active July 18, 2022 06:39
CI/CD for simple spring boot app which uses docker. Here is github action and circle ci file which do the same thing.
version: 2.1
jobs:
build:
docker:
- image: gradle:alpine
steps:
- checkout
- run: ./gradlew bootJar
- persist_to_workspace:
@darbyluv2code
darbyluv2code / MyLoggerConfig.java
Last active February 5, 2023 06:34
Spring Logging for Spring 5.1 - XML Configuration
package com.luv2code.springdemo;
import java.util.logging.ConsoleHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class MyLoggerConfig {
@mindcrime
mindcrime / gist:b697acc97e68b721669353aa8c6b19b2
Created March 30, 2016 00:53
How to add a subdomain with AWS Route 53 using the Java SDK
AWSCredentials credentials = null;
try
{
credentials = new PropertiesFileCredentialsProvider( "credentials.properties" ).getCredentials();
}
catch (Exception e)
{
throw new AmazonClientException(
"Cannot load the credentials from the credential profiles file. " +
"Please make sure that your credentials file is at the correct " +