Skip to content

OsvaldoMartini/Corner-Spring-Cloud-Config-Server-Git

Repository files navigation

Search Paths

  • Search for the paths

    localhost:8888/s1rates/default

    localhost:8888/s1rates/master

    localhost:8888/s1rates/dev

    localhost:8888/s1rates/qa

    if I search for:

    localhost:8888/s2rates/qa it returns only "s2rates.properties" & "application.properties"

    because I don't have 's12ates-qa.properties' defined anywhere

{
    "name": "s2rates",
    "profiles": [
        "qa"
    ],
    "label": "master",
    "version": "0d9a7a072da1576a450578b542d071b3c5138268",
    "propertySources": [
        {
            "name": "https://github.com/OsvaldoMartini/PPMTool-Spring-Cloud-Config-Wa-Tolls/station2/s2rates.properties",
            "source": {
                "rate": "1.65",
                "lanecount": "3"
            }
        },
        {
            "name": "https://github.com/OsvaldoMartini/PPMTool-Spring-Cloud-Config-Wa-Tolls/application.properties",
            "source": {
                "tollstart": "05:00",
                "tollstop": "22:00",
                "rate": "1.55",
                "lanecount": "0"
            }
        }
    ]
}
If a search for : localhost:8888/s1rates/qa

I get back :
"s1rates-qa.properties" & "s1rates.properties" & "application.properties" 

Direct search for the properties:

'localhost:8888/s1rates-default.properties' or

'localhost:8888/s1rates-default.json' or

'localhost:8888/s1rates-default.yml'

If Don't exist it returns the 'Defaul One'

localhost:8888/s1rates-MellGibson.json

Sear for the Performance GitHub Repo

localhost:8888/s1rates/perf	

After Added 'Spring Boot Starter Secutiry'

	dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-security</artifactId>
	</dependency>	
* It Generates the Automatically Password:
	Using default security password: 0b975118-03f9-48a5-b32b-714ef0457a45
  • We get from : 'localhost:8888/s1rates/default'
{
    "timestamp": 1572101614461,
    "status": 401,
    "error": "Unauthorized",
    "message": "Full authentication is required to access this resource",
    "path": "/s1rates/default"
}

*To Set Secutiry Enabled to False:

Don't Forget to Recompile All the code 'mvn clean install'

In the 'yaml' file:

'application.yml'
---
server:
  port: 8888
secutiry:
  basic:
    enable: false
spring:
  cloud:
    config:
	...
```

#### With User and Paswrod
* Add Authorization (Autorizathio Tab in the IDE Resquest Tools)
  
  'Basic Auth'  user:martini pwd: martini as Expected

security: basic: enabled: true
user: name: martini password: martini


* The Authorization adds Temporaty key into the Header Request

[{"key":"Authorization","system":true,"value":"Basic bWFydGluaXI6bWFydGluaQ==","enabled":true,"disableEdit":true}]

About

PPMTool Spring Cloud M2 Config Server Git

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published